IndexedConversionOptions

Options for converting an RGB image to an indexed color model.

Hierarchy:

Superclass: DocumentConversionOptions

Class: IndexedConversionOptions

Constants/Events

Name

Type

Access

Description

colors

Int

readonly

The number of colors in the palette. Not valid for all palette types.

dither

DitherType

DitherType.NONE

DitherType.DIFFUSION

DitherType.PATTERN

DitherType.NOISE

readonly

The type of dither.

ditherAmount

Int (range 1 - 100)

readonly

The amount of dither. Valid only when 'dither' = diffusion.

forced

ForcedColors

ForcedColors.NONE

ForcedColors.BLACKWHITE

ForcedColors.PRIMARIES

ForcedColors.WEB

readonly

The type of colors to force into the color palette.

matte

MatteType

MatteType.NONE

MatteType.FOREGROUND

MatteType.BACKGROUND

MatteType.WHITE

MatteType.BLACK

MatteType.SEMIGRAY

MatteType.NETSCAPE

readonly

The color to use to fill anti-aliased edges adjacent to transparent areas of the image. When transparency = false, the matte color is applied to transparent areas.

palette

PaletteType

PaletteType.EXACT

PaletteType.MACOSPALETTE

PaletteType.WINDOWSPALETTE

PaletteType.WEBPALETTE

PaletteType.UNIFORM

PaletteType.LOCALPERCEPTUAL

PaletteType.LOCALSELECTIVE

PaletteType.LOCALADAPTIVE

PaletteType.MASTERPERCEPTUAL

PaletteType.MASTERSELECTIVE

PaletteType.MASTERADAPTIVE

PaletteType.PREVIOUSPALETTE

readonly

The type of palette.

preserveExactColors

Boolean

readonly

If true, protects colors in the image that contain entries in the color table from being dithered. Valid only when 'dither' = diffusion.

transparency

Boolean

readonly

If true, preserves transparent areas of the image during conversion to GIF format.