- Inside Macintosh: Imaging With QuickDraw /
- Chapter 7 - Pictures / Pictures Reference
- QuickDraw and Picture Utilities Routines
Drawing Pictures
To draw a picture, use the DrawPicture procedure. You must access a picture through its handle. When creating pictures, the OpenCPicture and OpenPicture functions (described beginning on page 7-36) return their handles. You can use the GetPicture 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 procedure GetScrap to get a handle to its data and then coerce this handle to one of type PicHandle, as shown in Listing 7-6 on page 7-16.
Subtopics
- DrawPicture
-
- GetPicture
-
© Apple Computer, Inc.
7 JUL 1996