Important: The information in this document is obsolete and should not be used for new development.
Creating, Setting, and Disposing of Pixel MapsQuickDraw automatically creates pixel maps when you create a color window with the
NewCWindowfunction (described in the chapter "Window Manager" in Inside Macintosh: Macintosh Toolbox Essentials), when you create offscreen graphics worlds with the
NewGWorldfunction (described in the chapter "Offscreen Graphics Worlds" in this book), and when you use the
OpenCPortfunction. 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 the
NewPixMapfunction and the
CopyPixMapprocedure to create them, and you can use the
DisposePixMapprocedure 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 the