Texture2D.SetData<T> Method (array<T[], Int32, Int32)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Sets 2D texture data, specifying a start index, and number of elements.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)
Syntax
'Declaration
Public Sub SetData(Of T As {Structure, New}) ( _
data As T(), _
startIndex As Integer, _
elementCount As Integer _
)
public void SetData<T>(
T[] data,
int startIndex,
int elementCount
)
where T : struct, new()
Type Parameters
- T
The type of the elements in the array.
Parameters
- data
Type: array<T[]
Array of data.
- startIndex
Type: System.Int32
Index of the first element to set.
- elementCount
Type: System.Int32
Number of elements to set.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.