Important: The information in this document is obsolete and should not be used for new development.
KillPicture
To release the memory occupied by a picture not stored in a'PICT'
resource, use theKillPicture
procedure.
PROCEDURE KillPicture (myPicture:\xDDPicHandle);
myPicture
- A handle to the picture whose memory can be released.
DESCRIPTION
TheKillPicture
procedure releases the memory occupied by the picture whose handle you pass in themyPicture
parameter. Use this only when you're completely finished with a picture.SPECIAL CONSIDERATIONS
If you use the Window Manager procedureSetWindowPic
to store a picture handle in the window record, you can use the Window Manager procedureDisposeWindow
orCloseWindow
to release the memory allocated to the picture; these procedures automatically callKillPicture
for the picture.If the picture is stored in a
'PICT'
resource, you must use the Resource Manager procedureReleaseResource
instead ofKillPicture
. The Window Manager proceduresDisposeWindow
andCloseWindow
will not delete it; instead, you must callReleaseResource
before callingDisposeWindow
orCloseWindow
.The
KillPicture
procedure may move or purge memory.SEE ALSO
TheReleaseResource
procedure is described in the chapter "Resource Manager" in Inside Macintosh: Macintosh Toolbox, and theSetWindowPic
,DisposeWindow
, andCloseWindow
procedures are described in the chapter "Window Manager," in Inside Macintosh: Macintosh Toolbox Essentials.