Adobe Photoshop CS5 Object Library JS: IndexedConversionOptions

Photoshop CS5

Class

IndexedConversionOptions

 Options for converting an RGB image to an indexed color model. Base Class: DocumentConversionOptions

Class

PropertyTypeAccessDescription
colorsint r/wThe number of colors in the palette. Not valid for all palette types.
ditherDither:
Dither.NONE
Dither.DIFFUSION
Dither.PATTERN
Dither.NOISE
r/wThe type of dither.
ditherAmountint (range: 1 - 100) r/wThe amount of dither. Valid only when 'dither' = diffusion.
forcedForcedColors:
ForcedColors.NONE
ForcedColors.BLACKWHITE
ForcedColors.PRIMARIES
ForcedColors.WEB
r/wThe type of colors to force into the color palette.
matteMatteType:
MatteType.NONE
MatteType.FOREGROUND
MatteType.BACKGROUND
MatteType.WHITE
MatteType.BLACK
MatteType.SEMIGRAY
MatteType.NETSCAPE
r/wThe 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.
palettePalette:
Palette.EXACT
Palette.MACOSPALETTE
Palette.WINDOWSPALETTE
Palette.WEBPALETTE
Palette.UNIFORM
Palette.LOCALPERCEPTUAL
Palette.LOCALSELECTIVE
Palette.LOCALADAPTIVE
Palette.MASTERPERCEPTUAL
Palette.MASTERSELECTIVE
Palette.MASTERADAPTIVE
Palette.PREVIOUSPALETTE
r/wThe type of palette. (default: Palette.EXACT)
preserveExactColorsbool r/wIf true, protects colors in the image that contain entries in the color table from being dithered. Valid only when 'dither' = diffusion.
transparencybool r/wIf true, preserves transparent areas of the image during conversion to GIF format.
Jongware, 28-Aug-2012 v3.0.3iContents :: Index