Skip to main content
4 events
when toggle format what by license comment
Jan 6, 2011 at 5:54 comment added Chris Charabaruk Actually Point is what I should be using, and I've switched to that. Still no difference; GetData() continues to toss.
Jan 6, 2011 at 5:36 comment added Chris Charabaruk Also, Type with a capital T is a lot different than a generic type. GetData() doesn't take a Type; it takes in an array of a generic type derived from ValueType (i.e. a struct), where that type matches the surface format's bit size -- as Color does for my texture images (32-bit, ARGB).
Jan 6, 2011 at 5:34 comment added Chris Charabaruk No custom classes here. Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Color. And I'm simply using Vector2 out of laziness (no IntVector2, although I suppose Short2 sould be okay); while the values are kept in floats, they're integer values and not large enough to round do different numbers. Changing how data's number of elements is calculated changes nothing.
Jan 6, 2011 at 5:13 history answered MikeBMcL CC BY-SA 2.5