Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Advanced Color Imaging Reference /
Chapter 1 - Palette Manager Reference /
Constants and Data Types


Usage Constants

The usage constants define how each color in a palette is to be used. (You can combine certain of these constants. See "Colors in a Palette" in Advanced Color Imaging on the Mac OS for information on how to use these constants to specify the usage for the colors in a palette.)

The ciUsage field of the color information structure (page 1-5) contains one or more usage constants that define how a particular color in a palette is to be used.

/* usage constants */
enum {
      pmCourteous = $0000; /* courteous color */
      pmTolerant  = $0002; /* tolerant color */
      pmAnimated  = $0004; /* animated color */
      pmExplicit  = $0008; /* explicit color */
      pmWhite     = $0010; /* use on 1-bit device */
      pmBlack     = $0020; /* use on 1-bit device */
      pmInhibitG2 = $0100; /* inhibit on 2-bit grayscale 
                              device */
      pmInhibitC2 = $0200; /* inhibit on 2-bit color 
                              device */
      pmInhibitG4 = $0400; /* inhibit on 4-bit grayscale 
                              device */
      pmInhibitC4 = $0800; /* inhibit on 4-bit color 
                              device */
      pmInhibitG8 = $1000; /* inhibit on 8-bit grayscale 
                              device */
      pmInhibitC8 = $2000; /* inhibit on 8-bit color device */
};

Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 NOV 1996