Important: The information in this document is obsolete and should not be used for new development.
|
|
Log In | Not a Member? |
Contact ADC |
Creating and Disposing of Color Tables
You use a color table, which is defined by a data structure of typeColorTable, to specify colors in the form ofRGBColorrecords. You can create and store color tables in'clut'resources. To retrieve a color table stored in a'clut'resource, you can use theGetCTablefunction. To dispose of the handle allocated for a color table, you use theDisposeCTableprocedure.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
Get information on Apple products.
Visit the Apple Store online or at retail locations. 1-800-MY-APPLE Copyright © 2007 Apple Inc. All rights reserved. | Terms of use | Privacy Notice |