Important: The information in this document is obsolete and should not be used for new development.
GetGWorldPixMap
Use theGetGWorldPixMapfunction to obtain the pixel map created for an offscreen graphics world.
FUNCTION GetGWorldPixMap (offscreenGWorld: GWorldPtr): PixMapHandle;
offscreenGWorld- A pointer to an offscreen graphics world.
DESCRIPTION
TheGetGWorldPixMapfunction returns a handle to the pixel map created for an offscreen graphics world. In theoffscreenGWorldparameter, pass the pointer returned to your application by theNewGWorldfunction when you created the offscreen graphics world. Your application can, in turn, pass the handle returned byGetGWorldPixMapas a parameter to other QuickDraw routines that accept a handle to a pixel map.On a system running only basic QuickDraw, the
GetGWorldPixMapfunction returns the handle to a 1-bit pixel map that your application can supply as a parameter to the other routines related to offscreen graphics worlds. However, your application should not supply this handle to Color QuickDraw routines.SPECIAL CONSIDERATIONS
To ensure compatibility on systems running basic QuickDraw instead of Color QuickDraw, useGetGWorldPixMapwhenever you need to gain access to the bitmap created for a graphics world--that is, do not dereference theGWorldPtrrecord for that graphics world.The
GetGWorldPixMapfunction is not available in systems preceding System 7. You can make sure that theGetGWorldPixMapfunction is available by using theGestaltfunction with thegestaltSystemVersionselector. Test the low-order word in theresponseparameter; if the value is $0700 or greater, thenGetGWorldPixMapis available.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theGetGWorldPixMapfunction are
Trap macro Selector _QDExtensions $00040017 SEE ALSO
TheGestaltfunction is described in the chapter "Gestalt Manager" of Inside Macintosh: Operating System Utilities.