Important: The information in this document is obsolete and should not be used for new development.
GetPicturefunction to get a handle to a picture stored in a
FUNCTION GetPicture (picID: Integer): PicHandle;
- The resource ID for a
GetPicturefunction returns a handle to the picture stored in the
'PICT'resource with the ID that you specify in the
picIDparameter. You can pass this handle to the
DrawPictureprocedure (described on page 7-43) to draw the picture stored in the resource.
GetPicturefunction calls the Resource Manager procedure
GetResource('PICT',picID)If the resource can't be read,
SPECIAL CONSIDERATIONSTo release the memory occupied by a picture stored in a
'PICT'resource, use the Resource Manager procedure
GetPicturefunction may move or purge memory.
ReleaseResourceprocedures are described in the chapter "Resource Manager" in Inside Macintosh: More Macintosh Toolbox. The
'PICT'resource is described on page 7-66.