This method of the Direct3dRMTexture Class retrieves the number of shades used for each color in the texture when rendering.
public int getShades();
Returns the number of shades.
setShades