iflColorModelChans(3)

iflColorModelChans, iflColorModelHasAlpha, iflColorModelFromChans - color model utilities

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     iflColorModelChans, iflColorModelHasAlpha, iflColorModelFromChans - color
     model utilities

SYNOPSIS
     #include <ifl/iflColor.h>

     int iflColorModelChans(iflColorModel cm)
     int iflColorModelHasAlpha(iflColorModel cm)
     iflColorModel iflColorModelFromChans(int nc)

DESCRIPTION
     The iflColorModelChans() function is provided to return the number of
     channels associated with a color model; it is standalone and is not a
     member function of any object.  Given a color model cm, this function
     returns the number of channels associated with it. For example, for the
     iflRGB color model, a value of 3 will be returned; for the iflMinWhite
     color model a value of 1 will be returned. A value of zero is returned if
     the color model is iflMultiSpectral.

     The iflColorModelHasAlpha() function returns TRUE if the color model
     specifed by cm has an alpha component.

     The iflColorModelFromChans() function return a best guess at a color
     model that matches the number of channels specified by nc.  The return
     value as a function of the number of channels is:

          channels    color model

          1           iflLuminance

          2           iflLuminanceAlpha

          3           iflRGB

          4           iflRGBA

          other       iflMultiSpectral