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 3 - QuickDraw Drawing / QuickDraw Drawing Reference
Resources


The Pattern List Resource

You can use a pattern list resource to define an array of bit patterns. A pattern list resource is a resource of type 'PAT#'. All pattern list resources that you create must have resource ID numbers greater than 128.

To retrieve one of the bit patterns stored in a pattern list resource, you can use the GetIndPattern procedure, which is described on page 3-123. You can then specify that bit pattern for a fill pattern, background pattern, or pen pattern.

If you examine the compiled version of a pattern list resource, as represented in
Figure 3-30, you find that it contains the following information:

Figure 3-30 Format of a compiled pattern list ('PAT#') resource



Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996