★ wanayoo — archive 1999 http://developer.apple.com/samplecode/Sample_Code/Graphics_2D/Restore_Screen_Cluts.htmNouvelle recherche | Portail wanayoo
Technical: Sample Code: Graphics 2D: Restore Screen Cluts
Graphics 2D
ADC Resources
Sample Code

Restore Screen Cluts

download (117.3 KB)

Version:

1.0

Date:

Friday, July 16, 1999

Description:

This snippet shows how to restore all the screen's color tables back to what they normally are using two different methods. To demonstrate this, set your main screen to eight bits per pixel and run the program and open the Flowers PICT file. A window that displays the contents of the PICT file appears on the main screen, and its color table should change to the one in the PICT file. The is controlled by a palette full of tolerant colors. Now close the window, and you'll see that the screen's color table does not get set back to the default color table. But if you go to the Display menu and choose either of the commands there, all the screen's color tables should be restored back to what they normally are.

Requirements: System 7.0 or later




Samples are designed to work with CodeWarrior 2 or later and Universal Interfaces 3.2 unless otherwise noted. Archives can be uncompressed with StuffIt Expander 5.0 or later.
Gray line
 
Site Map | Search Tips | Options | Keywords

Contact Us | Privacy Notice
Copyright © 2000 Apple Computer, Inc. All rights reserved.
1-800-MY-APPLE