Photoshop CS Scripting Guide
11
Scripting basics
Object Model
2
.
Selection Class
The Selection class is used to specify an area of pixels in the active document (or in a selected
layer of the active document) that you want to work with. For more information on selections,
see
Section 3.12 on page 81
.
Channel Class
The Channel class is used to store pixel information about an image’s color. Image color
determines the number of channels available. An RGB image, for example, has four default
channels: one for each primary color and one for editing the entire image. You could have the
red channel active in order to manipulate just the red pixels in the image, or you could choose
to manipulate all the channels at once.
These kinds of channels are related to the document mode and are called “component
channels. In addition to the component channels, Photoshop lets you to create additional
channels. You can create a “spot color channel”, a “masked area channel” and a “selected area
channel.”
Using the methods of a Channel object, you can create, delete and duplicate channels. You can
also retrieve a channel's histogram, change its kind or change the current channel selection.
For more information on channels, see
Section 3.14 on page 89
.
Application
Document
Art Layer
Channel
Histogram
Selection
History
State
Document
Info
Object Model Classes
Array
Text Ite
m
Layer Set
Layer Set
Art Layer
Path Item
Path Point
(Object)