#include <maglo.h> int MAGscrModeNumColors(MagImage *mag);
The MAGscrModeNumColors() function returns the number of colors in MAG file that mag is associated to.
A color is represented as palette index, and palette maps palette index to actual color. Actual color for a palette index is obtained through MAGpalette(3) function. The range for palette index is 0 to (the value returned by MAGscrModeNumColors() )-1.
One of following values is returned:
Table of Contents