Important: The information in this document is obsolete and should not be used for new development.
Creating, Setting, and Disposing of Pixel Maps
QuickDraw automatically creates pixel maps when you create a color window with theGetNewCWindoworNewCWindowfunction (described in the chapter "Window Manager" in Inside Macintosh: Macintosh Toolbox Essentials), when you create offscreen graphics worlds with theNewGWorldfunction (described in the chapter "Offscreen Graphics Worlds" in this book), and when you use theOpenCPortfunction. QuickDraw also disposes of a pixel map when it disposes of a color graphics port. Although your application typically won't need to create or dispose of pixel maps, you can use theNewPixMapfunction and theCopyPixMapprocedure to create them, and you can use theDisposePixMapprocedure to dispose of them. Although you should never need to do so, you can also set the pixel map for the current color graphics port by using theSetPortPixprocedure.
Subtopics
- NewPixMap
- CopyPixMap
- SetPortPix
- DisposePixMap