Important: The information in this document is obsolete and should not be used for new development.
NewPixMap
Although you typically don't need to call this routine in your application code, you can use theNewPixMapfunction to create a new, initializedPixMaprecord.
FUNCTION NewPixMap: PixMapHandle;DESCRIPTION
TheNewPixMapfunction creates a new, initializedPixMaprecord and returns a handle to it. All fields of thePixMaprecord are copied from the current device'sPixMaprecord except the color table. In System 7, thehResandvResfields are set to 72 dpi, no matter what values the current device'sPixMaprecord contains. A handle to the color table is allocated but not initialized.You typically don't need to call this routine.
PixMaprecords are created for you when you create a window using the Window Manager functionsNewCWindowandGetNewCWindowand when you create an offscreen graphics world with theNewGWorldfunction.If your application creates a pixel map, your application must initialize the
PixMaprecord's color table to describe the pixels. You can use theGetCTablefunction (described on page 4-83) to read such a table from a resource file; you can then use theDisposeCTableprocedure (described on page 4-84) to dispose of thePixMaprecord's color table and replace it with the one returned byGetCTable.SPECIAL CONSIDERATIONS
TheNewPixMapfunction may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.