Packagecom.adobe.photoshop
Classpublic class Channel
InheritanceChannel Inheritance PhotoshopHostObject Inheritance CSHostObject Inheritance flash.utils.Proxy

Object that stores information about a color element in the image, analogous to a plate in the printing process that applies a single color. The document's color mode determines the number of default channels. For example, an RGB document has four default channels: A composite channel: RGB; and three component channels: red, green, and blue. A channel can also be an alpha channel, which stores selections as masks; or a spot channel, which stores spot colors.



Public Properties
 PropertyDefined By
  color : SolidColor
The color of the channel.
Channel
  histogram : Array
[read-only] A histogram of the color of the channel.
Channel
 InheritedhostObjectDelegate : HostObject
Getter for the delegate
CSHostObject
  kind : ChannelType
The type of channel.
Channel
  name : String
The channel name.
Channel
  opacity : Number
The opacity of alpha channels (called solidity for spot channels).
Channel
 Inheritedparent : *
[read-only]
PhotoshopHostObject
  visible : Boolean
If true, the channel is visible.
Channel
Public Methods
 MethodDefined By
  
duplicate(targetDocument:Document = null):Channel
Duplicate this object.
Channel
 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
  
merge():void
Merges a spot channel into the component channels.
Channel
  
remove():void
delete the object
Channel
 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
colorproperty
color:SolidColor

The color of the channel. Not valid for component channels.


Implementation
    public function get color():SolidColor
    public function set color(value:SolidColor):void
histogramproperty 
histogram:Array  [read-only]

A histogram of the color of the channel.


Implementation
    public function get histogram():Array
kindproperty 
kind:ChannelType

The type of channel.


Implementation
    public function get kind():ChannelType
    public function set kind(value:ChannelType):void
nameproperty 
name:String

The channel name.


Implementation
    public function get name():String
    public function set name(value:String):void
opacityproperty 
opacity:Number

The opacity of alpha channels (called solidity for spot channels). Range: 0 to 100. Valid only when 'type' = masked area or selected area.


Implementation
    public function get opacity():Number
    public function set opacity(value:Number):void
visibleproperty 
visible:Boolean

If true, the channel is visible.


Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
Method Detail
duplicate()method
public function duplicate(targetDocument:Document = null):Channel

Duplicate this object.

Parameters

targetDocument:Document (default = null) — (com.adobe.photoshop.Document) The document to duplicate the channel to.

Returns
Channel
merge()method 
public function merge():void

Merges a spot channel into the component channels.

remove()method 
public function remove():void

delete the object