home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Pascal / Snippets / CollectPictColors 1.0 / ReadMe < prev   
Encoding:
Text File  |  1995-10-11  |  1.2 KB  |  34 lines  |  [TEXT/ttxt]

  1.  
  2.     Application:    CollectPictColors
  3.  
  4.     Description:    This application uses the Picture Utilities package
  5.                     and Jon Zap's KnowsPict application to demonstrate
  6.                     two methods of collecting colors used by Pict
  7.                     resources.  In this program, you'll see different
  8.                     results for each method.  With the Pict Util package,
  9.                     the routine, GetPictInfo, returns a colortable with
  10.                     the number of colors requested, but only the colors
  11.                     used in the picture or it's pixmap(s) image data are
  12.                     stored in the requested colors.  As for the
  13.                     remaining requested colors not used by the picture
  14.                     but stored in the picture's pixmap(s) colortable,
  15.                     they are set to black.  In Jon's application this
  16.                     doesn't occur.  All the colors used by the picture,
  17.                     including those stored in the picture's pixmap(s)
  18.                     colortable are returned.  To use Jon's routines,
  19.                     simply call CollectColors with the appropriate
  20.                     parameters.
  21.  
  22.     Files:            CollectPictColors.π
  23.                     CollectPictColors.c
  24.                     CollectPictColors.π.rsrc
  25.                     CLUTBuilder.c    (written by Jon Zap)
  26.  
  27.     Programmer:        Edgar Lee
  28.     Organization:    Apple Computer, Inc.
  29.     Department:        Developer Technical Support, DTS
  30.     Language:        C (Think C version 5.0.1)
  31.     Date Created:    02-20-92
  32.  
  33. Converted to Pascal.
  34.