home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-11 | 1.2 KB | 34 lines | [TEXT/ttxt] |
-
- Application: CollectPictColors
-
- Description: This application uses the Picture Utilities package
- and Jon Zap's KnowsPict application to demonstrate
- two methods of collecting colors used by Pict
- resources. In this program, you'll see different
- results for each method. With the Pict Util package,
- the routine, GetPictInfo, returns a colortable with
- the number of colors requested, but only the colors
- used in the picture or it's pixmap(s) image data are
- stored in the requested colors. As for the
- remaining requested colors not used by the picture
- but stored in the picture's pixmap(s) colortable,
- they are set to black. In Jon's application this
- doesn't occur. All the colors used by the picture,
- including those stored in the picture's pixmap(s)
- colortable are returned. To use Jon's routines,
- simply call CollectColors with the appropriate
- parameters.
-
- Files: CollectPictColors.π
- CollectPictColors.c
- CollectPictColors.π.rsrc
- CLUTBuilder.c (written by Jon Zap)
-
- Programmer: Edgar Lee
- Organization: Apple Computer, Inc.
- Department: Developer Technical Support, DTS
- Language: C (Think C version 5.0.1)
- Date Created: 02-20-92
-
- Converted to Pascal.
-