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: Imaging With QuickDraw /
Chapter 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Routines / Drawing With the Eight-Color System


ColorBit

Use the ColorBit procedure to set the foreground color for all printing in the current graphics port.

PROCEDURE ColorBit (whichBit: Integer); 
whichBit
An integer specifying the plane to draw into.
DESCRIPTION
The ColorBit procedure is called by printing software for a color printer (or other color-imaging software) to set the GrafPort record's colorBit field to the value in the whichBit parameter. This value tells QuickDraw which plane of the color picture to draw into. QuickDraw draws into the plane corresponding to the bit number specified by the whichBit parameter. Since QuickDraw can support output devices that have up to 32 bits of color information per pixel, the possible range of values for whichBit is 0 through 31. The initial value of the colorBit field is 0.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996