Carbon


ColorBit

Header: Quickdraw.h Carbon status: Supported

Sets the foreground color for all printing in the current graphics port.

void ColorBit (
    SInt16 whichBit
);
Parameter descriptions
whichBit

An integer specifying the plane to draw into.

DISCUSSION

The ColorBit function is called by printing software for a color printer (or other color-imaging software) to set the GrafPort structure’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.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)