Export (0) Print
Expand All

Texture2D.SetData Method

Copies array data to the texture.

NameDescription
Texture2D.SetData (Int32, Nullable<Rectangle>, T[], Int32, Int32, SetDataOptions)Copies array data to the texture.
Texture2D.SetData (T[])Copies array data to the texture at mipmap level 0.
Texture2D.SetData (T[], Int32, Int32, SetDataOptions)Copies array data to the texture at mipmap level 0.

Exception typeCondition
InvalidOperationException The size of the data passed in is too large or too small for this resource.

Community Additions

ADD
Show:
© 2014 Microsoft