Carbon


Color Selection Method Constants

Header: PictUtils.h

enum {
    systemMethod = 0,
    popularMethod = 1,
    medianMethod = 2
};

Constant descriptions

systemMethod

Lets Picture Utilities choose the method. Currently they always choose popularMethod.

popularMethod

Returns the most frequently used colors.

medianMethod

Returns a weighted distribution of colors.

These constants are used to indicate the method by which colors are selected for the ColorTable or Palette structure returned via the PictInfo structure, by the functions NewPictInfo, GetPixMapInfo, or GetPictInfo.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)