Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies array data to the texture.
Overload List
Name | Description |
---|---|
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. |
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The size of the data passed in is too large or too small for this resource. |
See Also
Reference
Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace