Package | com.adobe.photoshop |
Class | public class Palette |
Inheritance | Palette ![]() ![]() ![]() ![]() |
Since : | CS5 |
Property | Defined 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 | ||
![]() | hostObjectDelegate : 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 | ||
![]() | value : 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 |
Method | Defined By | ||
---|---|---|---|
Palette(ho:HostObject = null, enum:Number)
Constructor
| Palette | ||
![]() | filterArgsForHBAPI(args:Array):Array [static]
Function to clean up the argument list and put it into a format that
makes sense for HBAPI. | CSHostObject | |
![]() | filterSingleObjectForHBAPI(value:Object):Object [static]
| CSHostObject | |
![]() | 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 | |
![]() | getSpecialTranslation(className:String, ho:HostObject, expectedReturnType:Class, ownerName:String):* [static] | CSHostObject | |
![]() | hostCall(name:String, expectedReturnType:Class, rawargs:Array):*
Encapsulates a function call to the host
| CSHostObject | |
![]() | hostCallStatic(className:String, methodName:String, expectedReturnType:Class, rawargs:Array):* [static]
Implements a safe call of a static method on the host
| CSHostObject | |
![]() | hostGet(name:String, expectedReturnType:Class):*
Encapsulates a property get to the host
| CSHostObject | |
![]() | hostGetIndex(idx:Object, expectedReturnType:Class):*
Encapsulates a indexed get to the host
| CSHostObject | |
![]() | 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 | |
![]() | hostSet(name:String, rawvalue:*):void
Encapsulates a property set to the host
| CSHostObject | |
![]() | hostSetStatic(className:String, propertyName:String, rawvalue:*):* [static]
Implements a safe set of a static property on the host
| CSHostObject | |
![]() | 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 | |
![]() | replaceDefaultArgs(args:Array, defaultArgs:Array):Array
Function to tidy up arguments prior to call. | CSHostObject | |
![]() | wrapReturnedHostObject(rawObject:Object, expectedReturnType:Class, client:CSHostObject, propertyName:String):* [static]
Method used on static/normal get/ hostcalls
| CSHostObject |
enumCache | property |
enumCache:CSEnumSharedCache
[read-only] Since : | CS5 |
public static function get enumCache():CSEnumSharedCache
EXACT | property |
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.
public static function get EXACT():Palette
LOCALADAPTIVE | property |
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.
public static function get LOCALADAPTIVE():Palette
LOCALPERCEPTUAL | property |
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.
public static function get LOCALPERCEPTUAL():Palette
LOCALSELECTIVE | property |
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.
public static function get LOCALSELECTIVE():Palette
MACOSPALETTE | property |
MACOSPALETTE:Palette
[read-only] Since : | CS5 |
The Mac OS default 8-bit palette, whch is based on a uniform sampling of RGB colors.
public static function get MACOSPALETTE():Palette
MASTERADAPTIVE | property |
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.
public static function get MASTERADAPTIVE():Palette
MASTERPERCEPTUAL | property |
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.
public static function get MASTERPERCEPTUAL():Palette
MASTERSELECTIVE | property |
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.
public static function get MASTERSELECTIVE():Palette
PREVIOUSPALETTE | property |
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.
public static function get PREVIOUSPALETTE():Palette
UNIFORM | property |
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.
public static function get UNIFORM():Palette
WEBPALETTE | property |
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.
public static function get WEBPALETTE():Palette
WINDOWSPALETTE | property |
WINDOWSPALETTE:Palette
[read-only] Since : | CS5 |
The Windows system's default 8-bit palette, whch is based on a uniform sampling of RGB colors.
public static function get WINDOWSPALETTE():Palette
Palette | () | Constructor |
public function Palette(ho:HostObject = null, enum:Number)
Since : | CS5 |
Constructor
Parametersho:HostObject (default = null ) — Enumerations value
| |
enum:Number (default = NaN )
|