Texture2D.SetData Method

Sets data to the texture.

NameDescription
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.
Show: