Texture2D.GetData Method

Copies texture data into an array.

Overload List

Name Description
Texture2D.GetData (Int32, Nullable<Rectangle>, T[], Int32, Int32) Gets a copy of 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.
Texture2D.GetData (T[]) Gets a copy of 2D texture data.
Texture2D.GetData (T[], Int32, Int32) Gets a copy of 2D texture data, specifying a start index and number of elements.

See Also

Reference

Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace