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
Resources


The Pixel Pattern Resource

You can use a pixel pattern resource to define a multicolored pattern to display with Color QuickDraw routines. A pixel pattern resource is a resource of type 'ppat'. All 'ppat' resources should be marked purgeable, and they must have resource IDs greater than 128. Use the GetPixPat function (described on page 4-79) to create a pixel pattern defined in a 'ppat' resource. Color QuickDraw uses the information you specify to create a PixPat record in memory. (The PixPat record is described on page 4-49.)

This section describes the structure of this resource after it has been compiled by the Rez resource compiler, available from APDA. However, you typically use a high-level tool such as the ResEdit application, also available through APDA, to create 'ppat' resources. You can then use the DeRez decompiler to convert your 'ppat' resources into Rez input when necessary.

The compiled output format for a 'ppat' resource is illustrated in Figure 4-16.

Figure 4-16 Format of a compiled pixel pattern ('ppat') resource


The compiled version of a 'ppat' resource contains the following elements:


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996