Partilhar via


Texture3D.GetData Generic Method (Int32, Int32, Int32, Int32, Int32, Int32, Int32, T , Int32, Int32)

Gets a copy of 3D texture data, specifying a mimap level, source rectangle, start index, and number of elements.

Syntax

'Declaration
Public Sub GetData(Of T As ValueType) ( _
         level As Integer, _
         left As Integer, _
         top As Integer, _
         right As Integer, _
         bottom As Integer, _
         front As Integer, _
         back As Integer, _
         data As T(), _
         startIndex As Integer, _
         elementCount As Integer _
)
public void GetData<T> (
         int level,
         int left,
         int top,
         int right,
         int bottom,
         int front,
         int back,
         T[] data,
         int startIndex,
         int elementCount
) where T : ValueType
public:
generic<typename T> where T : ValueType
void GetData(
         int level,
         int left,
         int top,
         int right,
         int bottom,
         int front,
         int back,
         T data[],
         int startIndex,
         int elementCount
)

Type Parameters

  • T
    The type of the elements in the array.

Parameters

  • level
    Type: Int32
    Mipmap level.
  • left
    Type: Int32
    Position of the left side of the box on the x-axis.
  • top
    Type: Int32
    Position of the top of the box on the y-axis.
  • right
    Type: Int32
    Position of the right side of the box on the x-axis.
  • bottom
    Type: Int32
    Position of the bottom of the box on the y-axis.
  • front
    Type: Int32
    Position of the front of the box on the z-axis.
  • back
    Type: Int32
    Position of the back of the box on the z-axis.
  • data
    Type: T
    Array of data.
  • startIndex
    Type: Int32
    Index of the first element to get.
  • elementCount
    Type: Int32
    Number of elements to get.

Requirements

Namespace: Microsoft.Xna.Framework.Graphics

Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

See Also

Reference

Texture3D Class
Texture3D Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Windows Phone