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.
Sets 2D texture data.
Syntax
'Declaration
Public Sub SetData(Of T As ValueType) ( _
data As T() _
)
public void SetData<T> (
T[] data
) where T : ValueType
public:
generic<typename T> where T : ValueType
void SetData(
T data[]
)
Type Parameters
- T
The type of the elements in the array.
Parameters
- data
Type: T
Array of data.
Exceptions
Exception type | Condition |
---|---|
InvalidOperationException | The size of the data passed in is too large or too small for this resource. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
Texture2D Class
Texture2D Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone