Packagecom.adobe.photoshop
Classpublic class Palette
InheritancePalette Inheritance PhotoshopEnumBase Inheritance CSEnumBase Inheritance CSHostObject Inheritance flash.utils.Proxy

Since : CS5

The palette type for converting an image to indexed color.



Public Properties
 PropertyDefined By
  enumCache : CSEnumSharedCache
[static] [read-only]
Palette
  EXACT : Palette
[static] [read-only] The palette uses the exact colors appearing in the RGB image; available only if the image uses 256 or fewer colors.
Palette
 InheritedhostObjectDelegate : HostObject
Getter for the delegate
CSHostObject
  LOCALADAPTIVE : Palette
[static] [read-only] Creates a palette by sampling the colors from the spectrum appearing most commonly in the image.
Palette
  LOCALPERCEPTUAL : Palette
[static] [read-only] Creates a custom palette by giving priority to colors for in the image which the human eye has greater sensitivity.
Palette
  LOCALSELECTIVE : Palette
[static] [read-only] Creates a color table similar to the Perceptual color table, but favoring broad areas of color in the image and the preservation of web colors.
Palette
  MACOSPALETTE : Palette
[static] [read-only] The Mac OS default 8-bit palette, whch is based on a uniform sampling of RGB colors.
Palette
  MASTERADAPTIVE : Palette
[static] [read-only] Creates a palette by sampling the colors from the spectrum appearing most commonly in a group of open images that share the same color palette.
Palette
  MASTERPERCEPTUAL : Palette
[static] [read-only] Creates a custom palette by giving priority to colors in a group of open images with the same color palette for which the human eye has greater sensitivity.
Palette
  MASTERSELECTIVE : Palette
[static] [read-only] Creates a color table similar to the Master Perceptual color table, but favoring broad areas of color and the preservation of web colors.
Palette
  PREVIOUSPALETTE : Palette
[static] [read-only] Uses the custom palette from the previous conversion, making it easy to convert several images with the same custom palette.
Palette
  UNIFORM : Palette
[static] [read-only] Creates a palette by uniformly sampling colors from the RGB color cube.
Palette
 Inheritedvalue : Object
[override] [read-only] Returns the object value
PhotoshopEnumBase
  WEBPALETTE : Palette
[static] [read-only] The 216-color palette that web browsers, regardless of platform, use to display images on a monitor limited to 256 colors.
Palette
  WINDOWSPALETTE : Palette
[static] [read-only] The Windows system's default 8-bit palette, whch is based on a uniform sampling of RGB colors.
Palette
Public Methods
 MethodDefined By
  
Palette(ho:HostObject = null, enum:Number)
Constructor
Palette
 Inherited
filterArgsForHBAPI(args:Array):Array
[static] Function to clean up the argument list and put it into a format that makes sense for HBAPI.
CSHostObject
 Inherited
filterSingleObjectForHBAPI(value:Object):Object
[static]
CSHostObject
 Inherited
getClassObjectForName(className:String):HostObject
[static] This returns a "Class" object, meaning, a HostObject that can be used to make static function calls or get static properties
CSHostObject
 Inherited
getSpecialTranslation(className:String, ho:HostObject, expectedReturnType:Class, ownerName:String):*
[static]
CSHostObject
 Inherited
hostCall(name:String, expectedReturnType:Class, rawargs:Array):*
Encapsulates a function call to the host
CSHostObject
 Inherited
hostCallStatic(className:String, methodName:String, expectedReturnType:Class, rawargs:Array):*
[static] Implements a safe call of a static method on the host
CSHostObject
 Inherited
hostGet(name:String, expectedReturnType:Class):*
Encapsulates a property get to the host
CSHostObject
 Inherited
hostGetIndex(idx:Object, expectedReturnType:Class):*
Encapsulates a indexed get to the host
CSHostObject
 Inherited
hostGetStatic(className:String, propertyName:String, expectedReturnType:Class):*
[static] Implements a safe get of a static property on the host Used by for instance, all the enum implementations.
CSHostObject
 Inherited
hostSet(name:String, rawvalue:*):void
Encapsulates a property set to the host
CSHostObject
 Inherited
hostSetStatic(className:String, propertyName:String, rawvalue:*):*
[static] Implements a safe set of a static property on the host
CSHostObject
 Inherited
isDescendedFrom(clz:Class, ancClass:Class):Boolean
[static] Efficiently determines whether or not one class descends from another in inheritance hierarchy- class relationships are cached by the ClassUtils implementation- (uses org.as3commons lib to quickly discover class hierarchy.
CSHostObject
 Inherited
replaceDefaultArgs(args:Array, defaultArgs:Array):Array
Function to tidy up arguments prior to call.
CSHostObject
 Inherited
wrapReturnedHostObject(rawObject:Object, expectedReturnType:Class, client:CSHostObject, propertyName:String):*
[static] Method used on static/normal get/ hostcalls
CSHostObject
Protected Methods
 MethodDefined By
 Inherited
createWithArgs(args:Array):void
CSHostObject
 Inherited
hostCreate(args:Array):void
CSHostObject
Property Detail
enumCacheproperty
enumCache:CSEnumSharedCache  [read-only]

Since : CS5


Implementation
    public static function get enumCache():CSEnumSharedCache
EXACTproperty 
EXACT:Palette  [read-only]

Since : CS5

The palette uses the exact colors appearing in the RGB image; available only if the image uses 256 or fewer colors. Because the image's palette contains all colors in the image, there is no dithering.


Implementation
    public static function get EXACT():Palette
LOCALADAPTIVEproperty 
LOCALADAPTIVE:Palette  [read-only]

Since : CS5

Creates a palette by sampling the colors from the spectrum appearing most commonly in the image. For example, an RGB image with only the colors green and blue produces a palette made primarily of greens and blues.


Implementation
    public static function get LOCALADAPTIVE():Palette
LOCALPERCEPTUALproperty 
LOCALPERCEPTUAL:Palette  [read-only]

Since : CS5

Creates a custom palette by giving priority to colors for in the image which the human eye has greater sensitivity.


Implementation
    public static function get LOCALPERCEPTUAL():Palette
LOCALSELECTIVEproperty 
LOCALSELECTIVE:Palette  [read-only]

Since : CS5

Creates a color table similar to the Perceptual color table, but favoring broad areas of color in the image and the preservation of web colors. Usually produces images with the greatest color integrity.


Implementation
    public static function get LOCALSELECTIVE():Palette
MACOSPALETTEproperty 
MACOSPALETTE:Palette  [read-only]

Since : CS5

The Mac OS default 8-bit palette, whch is based on a uniform sampling of RGB colors.


Implementation
    public static function get MACOSPALETTE():Palette
MASTERADAPTIVEproperty 
MASTERADAPTIVE:Palette  [read-only]

Since : CS5

Creates a palette by sampling the colors from the spectrum appearing most commonly in a group of open images that share the same color palette.


Implementation
    public static function get MASTERADAPTIVE():Palette
MASTERPERCEPTUALproperty 
MASTERPERCEPTUAL:Palette  [read-only]

Since : CS5

Creates a custom palette by giving priority to colors in a group of open images with the same color palette for which the human eye has greater sensitivity.


Implementation
    public static function get MASTERPERCEPTUAL():Palette
MASTERSELECTIVEproperty 
MASTERSELECTIVE:Palette  [read-only]

Since : CS5

Creates a color table similar to the Master Perceptual color table, but favoring broad areas of color and the preservation of web colors.


Implementation
    public static function get MASTERSELECTIVE():Palette
PREVIOUSPALETTEproperty 
PREVIOUSPALETTE:Palette  [read-only]

Since : CS5

Uses the custom palette from the previous conversion, making it easy to convert several images with the same custom palette.


Implementation
    public static function get PREVIOUSPALETTE():Palette
UNIFORMproperty 
UNIFORM:Palette  [read-only]

Since : CS5

Creates a palette by uniformly sampling colors from the RGB color cube. For example, if Photoshop takes six evenly spaced color levels each of red, green, and blue, the combination produces a uniform palette of 216 colors (6 cubed = 6 x 6 x 6 = 216). The total number of colors displayed in an image corresponds to the nearest perfect cube (8, 27, 64, 125, or 216) that is less than the value in the Colors text box.


Implementation
    public static function get UNIFORM():Palette
WEBPALETTEproperty 
WEBPALETTE:Palette  [read-only]

Since : CS5

The 216-color palette that web browsers, regardless of platform, use to display images on a monitor limited to 256 colors. A subset of the Mac OS 8-bit palette. Use this option to avoid browser dither when viewing images on a monitor display limited to 256 colors.


Implementation
    public static function get WEBPALETTE():Palette
WINDOWSPALETTEproperty 
WINDOWSPALETTE:Palette  [read-only]

Since : CS5

The Windows system's default 8-bit palette, whch is based on a uniform sampling of RGB colors.


Implementation
    public static function get WINDOWSPALETTE():Palette
Constructor Detail
Palette()Constructor
public function Palette(ho:HostObject = null, enum:Number)

Since : CS5

Constructor

Parameters
ho:HostObject (default = null) — Enumerations value
 
enum:Number (default = NaN)