Important: The information in this document is obsolete and should not be used for new development.
GetPixelsState
To save the current information about the memory allocated for an offscreen pixel image, you can use theGetPixelsStatefunction.
FUNCTION GetPixelsState (pm: PixMapHandle): GWorldFlags;
pm- A handle to an offscreen pixel map.
DESCRIPTION
TheGetPixelsStatefunction returns information about the memory allocated for the base address for an offscreen pixel image. This information can be either of the following flags defined by theGWorldFlagsdata type:
TYPE GWorldFlags = SET OF ( {flags for GetPixelsState only are listed here} pixelsPurgeable, {the base address for an offscreen pixel } { image is purgeable} pixelsLocked, {the offscreen pixel image is locked and } { not purgeable} );If thepixelsPurgeableflag is not returned, then the base address for the offscreen pixel image is unpurgeable. If thepixelsLockedflag is not returned, then the base address for the offscreen pixel image is unlocked.After using
GetPixelsStateto save this state information, your application can later use theSetPixelsStateprocedure, described next, to restore this state to the offscreen graphics world.Specify a handle to a pixel map in the
pmparameter. To get a handle to an offscreen pixel map, use theGetGWorldPixMapfunction, described on page 6-31.SPECIAL CONSIDERATIONS
TheGetPixelsStatefunction may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theGetPixelsStatefunction are
Trap macro Selector _QDExtensions $0004000D SEE ALSO
After usingGetPixelsStateand before usingSetPixelsState, your application can temporarily use theAllowPurgePixelsprocedure (described on page 6-34) to make the base address for an offscreen pixel image purgeable, theNoPurgePixelsprocedure (described on page 6-35) to make it unpurgeable, theLockPixelsfunction (described on page 6-32) to prevent it from being moved, and theUnlockPixelsprocedure (described on page 6-33) to allow it to be moved.