d3d9.dllExtractTexture
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPRTBuffer::ExtractTexture Method


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

Syntax

HRESULT ExtractTexture(      

    UINT Channel,     UINT StartCoefficient,     UINT NumCoefficients,     LPDIRECT3DTEXTURE9 pTexture );

Parameters

Channel
[in] Buffer color channel from which to extract texture data.
StartCoefficient
[in] Starting value of the buffer coefficient from which to extract texture data.
NumCoefficients
[in] Number of scalars, beginning at StartCoefficient, from which to extract texture data.
pTexture
[in] Pointer to a IDirect3DTexture9 texture object that will store coefficients.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the return value can be one of the following:

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.




© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.