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 4 - Color QuickDraw / Color QuickDraw Reference
Color QuickDraw Routines


Creating and Disposing of Color Tables

You use a color table, which is defined by a data structure of type ColorTable, to specify colors in the form of RGBColor records. You can create and store color tables in 'clut' resources. To retrieve a color table stored in a 'clut' resource, you can use the GetCTable function. To dispose of the handle allocated for a color table, you use the DisposeCTable procedure.

The Palette Manager, described in the chapter "Palette Manager" in Advanced Color Imaging on the Mac OS, has additional routines that enable you to copy colors between palettes and color tables and to restore the default colors to a CLUT belonging to a graphics device.

The Color Manager, described in the chapter "Color Manager" in Advanced Color Imaging on the Mac OS, contains low-level routines for directly manipulating the fields of the CLUT on a graphics device; most applications do not need to use those routines.


Subtopics
GetCTable
DisposeCTable

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996