Important: The information in this document is obsolete and should not be used for new development.
Drawing Pictures
To draw a picture, use theDrawPicture
procedure. You must access a picture through its handle. When creating pictures, theOpenCPicture
andOpenPicture
functions (described beginning on page 7-36) return their handles. You can use theGetPicture
function to get a handle to a QuickDraw picture stored in a'PICT'
resource.
- Note
- To get a handle to a QuickDraw picture stored in a
'PICT'
file, you must use File Manager routines, as described in "Drawing a Picture Stored in a 'PICT' File" beginning on page 7-12. To get a picture stored in the scrap, use the Scrap Manager procedureGetScrap
to get a handle to its data and then coerce this handle to one of typePicHandle
, as shown in Listing 7-6 on page 7-16.
Subtopics
- DrawPicture
- GetPicture