IDirect3DRMTexture2::InitFromImage

Initializes a texture from an image in memory.

HRESULT InitFromImage(
LPD3DRMIMAGE lpImage
);

Parameters

lpImage

Address of a D3DRMIMAGE structure describing the source of the texture.

Return Values

Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

Remarks

You must have created the IDirect3DRMTexture2 object to be initialized using the IDirect3DRM2::CreateTexture or IDirect3DRM2::CreateTextureFromSurface methods.

See Also

IDirect3DRMTexture2::InitFromFile, IDirect3DRMTexture2::InitFromResource2, IDirect3DRMTexture2::InitFromSurface