Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ iflColorModelHasAlpha() — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



iflColorModelChans(3)                Image Format Library C++ Reference Manual



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

















                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026