Texture2D.SetData Method

Sets data to the texture.

Overload List

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

See Also

Reference

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