Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 4 - Color QuickDraw / Color QuickDraw Reference
Color QuickDraw Routines


Creating and Disposing of Pixel Patterns

Pixel patterns can use colors at any pixel depth and can be of any width and height that's a power of 2. To create a pixel pattern, you typically define it in a 'ppat' resource, which you store in a resource file. To retrieve the pixel pattern stored in a 'ppat' resource, you can use the GetPixPat function.

Color QuickDraw also allows you to create and dispose of pixel patterns by using the NewPixPat, CopyPixPat, MakeRGBPat, and DisposePixPat routines, although generally you should create them in 'ppat' resources (described on page 4-94).

When your application is finished using a pixel pattern, it should dispose of it with the DisposePixPat procedure.


Subtopics
GetPixPat
NewPixPat
CopyPixPat
MakeRGBPat
DisposePixPat

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996