IDirect3DRMTexture::GetColors

DWORD GetColors();

Retrieves the maximum number of colors used for rendering a texture.

·Returns the number of colors.

This method returns the number of colors that the texture has been quantized to, not the number of colors in the image from which the texture was created. Consequently, the number of colors that are returned usually matches the colors that were set by calling the IDirect3DRM::SetDefaultTextureColors method, unless you used the IDirect3DRMTexture::SetColors method explicitly to change the colors for the texture.