Adobe 23101764 Scripting Guide - Page 15

Object Model Classes

Page 15 highlights

. Object Model Classes Application Document Scripting basics 2 Object Model Selection Path Item Channel Art Layer Layer Set Document Info Path Point Histogram Array Text Item (Object) History State Art Layer Layer Set 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. Photoshop CS Scripting Guide 11

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105

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)