Export (0) Print
Expand All

Texture2D.SetData(Of T) Method (Int32, Nullable(Of Rectangle), T(), Int32, Int32)

Sets 2D texture data, specifying a mipmap level, source rectangle, start index, and number of elements.

Namespace:  Microsoft.Xna.Framework.Graphics
Assembly:  Microsoft.Xna.Framework.Graphics (in Microsoft.Xna.Framework.Graphics.dll)

'Declaration
Public Sub SetData(Of T As {Structure, New}) ( _
	level As Integer, _
	rect As Nullable(Of Rectangle), _
	data As T(), _
	startIndex As Integer, _
	elementCount As Integer _
)

Type Parameters

T

The type of the elements in the array.

Parameters

level
Type: System.Int32
Mipmap level.
rect
Type: System.Nullable(Of Rectangle)
A bounding box that defines the position and location (in pixels) of the data.
data
Type: T()
Array of data.
startIndex
Type: System.Int32
Index of the first element to set.
elementCount
Type: System.Int32
Number of elements to set.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft