Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-03-12

Build Requirements: N/A

Runtime Requirements: Carbon System 7.0 or later

View Source Code:

Download Sample (“Restore_Screen_Cluts.zip”, 122.2K)
Download Sample (“Restore_Screen_Cluts.dmg”, 191.5K)



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 Keywords: RestoreDeviceClut, GetDeviceList, NewPalette, SetPalette, TestDeviceAttribute, GetCTable, CTab2Palette, GetNextDevice

Document Revision History

Date Notes
2003-03-12First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.