Important: The information in this document is obsolete and should not be used for new development.
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 theGetPixPat
function.Color QuickDraw also allows you to create and dispose of pixel patterns by using the
NewPixPat
,CopyPixPat
,MakeRGBPat
, andDisposePixPat
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