Texture.GetSurfaceLevel(Int32) Method (Microsoft.DirectX.Direct3D)

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.