Package | com.adobe.photoshop |
Class | public class Channel |
Inheritance | Channel ![]() ![]() ![]() |
Since : | CS5 |
Property | Defined By | ||
---|---|---|---|
color : SolidColor
The color of the channel. | Channel | ||
histogram : Array [read-only]
A histogram of the color of the channel. | Channel | ||
![]() | hostObjectDelegate : 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 | ||
![]() | parent : * [read-only] | PhotoshopHostObject | |
visible : Boolean
If true, the channel is visible. | Channel |
Method | Defined By | ||
---|---|---|---|
Duplicate this object. | Channel | ||
![]() | 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 | |
merge():void
Merges a spot channel into the component channels. | Channel | ||
remove():void
delete the object
| Channel | ||
![]() | 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 |
color | property |
color:SolidColor
Since : | CS5 |
The color of the channel. Not valid for component channels.
public function get color():SolidColor
public function set color(value:SolidColor):void
histogram | property |
histogram:Array
[read-only] Since : | CS5 |
A histogram of the color of the channel.
public function get histogram():Array
kind | property |
kind:ChannelType
Since : | CS5 |
The type of channel.
public function get kind():ChannelType
public function set kind(value:ChannelType):void
name | property |
name:String
Since : | CS5 |
The channel name.
public function get name():String
public function set name(value:String):void
opacity | property |
opacity:Number
Since : | CS5 |
The opacity of alpha channels (called solidity for spot channels). Range: 0 to 100. Valid only when 'type' = masked area or selected area.
public function get opacity():Number
public function set opacity(value:Number):void
visible | property |
visible:Boolean
Since : | CS5 |
If true, the channel is visible.
public function get visible():Boolean
public function set visible(value:Boolean):void
duplicate | () | method |
public function duplicate(targetDocument:Document = null):Channel
Since : | CS5 |
Duplicate this object.
Parameters
targetDocument:Document (default = null ) — (com.adobe.photoshop.Document) The document to duplicate the channel to.
|
Channel |
merge | () | method |
public function merge():void
Since : | CS5 |
Merges a spot channel into the component channels.
remove | () | method |
public function remove():void
Since : | CS5 |
delete the object