Texture.GetSurfaceLevel Method

Language:

Retrieves the specified texture surface level.

Definition

Visual Basic Public Function GetSurfaceLevel( _
    ByVal level As Integer _
) As Surface
C# public Surface GetSurfaceLevel(
    int level
);
C++ public:
SurfaceGetSurfaceLevel(
    int level
);
JScript public function GetSurfaceLevel(
    level : int
) : Surface;

Parameters

level System.Int32
Level of the texture resource. This method returns a surface for the level specified by this parameter. The top-level surface is denoted by 0.

Return Value

Microsoft.DirectX.Direct3D.Surface
A Surface object that represents the returned surface.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a parameter might contain an invalid value.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center