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

ID3DXPRTCompBuffer::ExtractTexture Method


Extracts the per-sample principal component analysis (PCA) projection coefficients from an ID3DXPRTCompBuffer compressed data buffer and adds the data to an IDirect3DTexture9 object.

Syntax

HRESULT ExtractTexture(      

    UINT StartPCA,     UINT NumPCA,     LPDIRECT3DTEXTURE9 pTexture );

Parameters

StartPCA
[in] Starting value of the buffer coefficient from which to extract texture data.
NumPCA
[in] Number of PCA coefficients to extract from the buffer.
pTexture
[in] Pointer to an IDirect3DTexture9 texture object that will store PCA coefficients.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the following value will be returned.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.




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