Important: The information in this document is obsolete and should not be used for new development.
DisposeGWorld
Use theDisposeGWorld
procedure to dispose of all the memory allocated for an offscreen graphics world.
PROCEDURE DisposeGWorld (offscreenGWorld: GWorldPtr);
offscreenGWorld
- A pointer to an offscreen graphics world.
DESCRIPTION
TheDisposeGWorld
procedure disposes of all the memory allocated for the offscreen graphics world pointed to in theoffscreenGWorld
parameter, including its pixel map, color table, pixel image, andGDevice
record (if one was created). In theoffscreenGWorld
parameter, pass the pointer returned to your application by theNewGWorld
function when you created the offscreen graphics world.Call
DisposeGWorld
only when your application no longer needs the pixel image associated with this offscreen graphics world. If this offscreen graphics world was the current device, the current device is reset to the device stored in the global variableMainDevice
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theDisposeGWorld
procedure are
Trap macro Selector _QDExtensions $00040004