ImageData
Introduction
The ImageData class represents modifiable data that can be created from a Texture2D, or be used to construct a Texture2D. The ImageData class can be used to easily interact with the Texture2D class, and also provides a cross-platform way of creating and modifying textures.
Creating Textures
Add the following using statements:
Add the following to Initialize after initializing FlatRedBall:
Note: This code uses the Color and Texture2D classes. Remember, if you are using a version of FlatRedBall other than FlatRedBall XNA, your using statements will be different. For more information, see:
Additional Information
ImageData Members
Did this article leave any questions unanswered? Post any question in our forums for a rapid response.
Last updated