This method of the Direct3dRMTexture Class retrieves the maximum number of colors used for rendering a texture.
public int getColors();
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 that the texture was created from. Consequently, the number of colors that are returned usually matches the number ofcolors that were set by calling the setDefaultTextureColors method, unless you explicitly used the setColors method to change the colors for the texture.