GraphicsDevice.GetBackBufferData Generic Method (Nullable<Rectangle>, T , Int32, Int32)
Gets the contents of the back buffer.
Syntax
'Declaration
Public Sub GetBackBufferData(Of T As Struct) ( _
rect As Nullable(Of Rectangle), _
data As T(), _
startIndex As Integer, _
elementCount As Integer _
)
public void GetBackBufferData<T> (
Nullable<Rectangle> rect,
T[] data,
int startIndex,
int elementCount
) where T : struct
public:
generic<typename T> where T : struct
void GetBackBufferData(
Nullable<Rectangle> rect,
T data[],
int startIndex,
int elementCount
)
Type Parameters
- T
The type of the elements in the array.
Parameters
- rect
Type: Nullable<Rectangle>
The section of the back buffer to copy. null indicates the data will be copied from the entire back buffer. - data
Type: T
Array of data. - startIndex
Type: Int32
The first element to use. - elementCount
Type: Int32
The number of elements to use.
Exceptions
Exception type | Condition |
---|---|
NotSupportedException | Profile does not support getting back buffer data. |
Requirements
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)
See Also
Reference
GraphicsDevice Class
GraphicsDevice Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Windows Phone