Share via


PrtBuffer.ExtractTexture(Int32,Int32,Int32,Texture) Method (Microsoft.DirectX.Direct3D)

Extracts coefficient data from a color channel of the buffer for a specified range of coefficients, and adds the data to a Texture object.

Definition

Visual Basic Public Sub ExtractTexture( _
    ByVal channel As Integer, _
    ByVal startCoefficient As Integer, _
    ByVal numberCoefficients As Integer, _
    ByVal texture As Texture _
)
C# public void ExtractTexture(
    int channel,
    int startCoefficient,
    int numberCoefficients,
    Texture texture
);
C++ public:
void ExtractTexture(
    int channel,
    int startCoefficient,
    int numberCoefficients,
    Texturetexture
);
JScript public function ExtractTexture(
    channel : int,
    startCoefficient : int,
    numberCoefficients : int,
    texture : Texture
);

Parameters

channel System.Int32
Buffer color channel from which to extract texture data.
startCoefficient System.Int32
Starting value of the buffer coefficient from which to extract texture data.
numberCoefficients System.Int32
Number of scalars, beginning at startCoefficient, from which to extract texture data.
texture Microsoft.DirectX.Direct3D.Texture
A Texture object that will store coefficients.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.