Description

Selects a casting option for the image when converting to an Indexed palette.

Property type

A mcCastingPaletteMethod enumeration.  

Syntax

object.PaletteCastingMethod [= value]

The PaletteCastingMethod Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McImageType.
valueA mcCastingPaletteMethod enumeration, as described in settings.

Settings

The settings for value are:

ConstantValueDescription
 mcpmMatchPalette0

Translate RGB to fit palette (default)

 mcpmStraightCopy1

Do straight copy - do not pass data thru palette

Exceptions

E_POINTER implies the argument pointer is invalid. E_INVALIDARG indicates the client is attempting to set the property to an invalid value.