Visual Basic Reference Guide


®
Photoshop CS
Visual Basic
bbc
Reference Guide
ADOBE SYSTEMS INCORPORATED
Corporate Headquarters
345 Park Avenue
San Jose, CA 95110-2704
(408) 536-6000
http://partners.adobe.com
October 2003
Adobe® Photoshop® CS Visual Basic Reference Guide
© Copyright 2000  2003 Adobe Systems Incorporated.
All Rights Reserved.
Adobe, ImageReady, Photoshop, Adobe Type Manager, ATM and PostScript are trademarks of Adobe Systems Incorporated that may
be registered in certain jurisdictions. Microsoft, Visual Basic, Windows, Windows 95, Windows 98, and Windows NT are registered
trademarks of Microsoft Corporation. All other products or name brands are trademarks of their respective holders.
The information in this document is furnished for informational use only, is subject to change without notice, and should not be
construed as a commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for
any errors or inaccuracies that may appear in this document. The software described in this document is furnished under license and
may only be used or copied in accordance with the terms of such license.
VBScript Reference
ActionDescriptor
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of keys contained in the descriptor
Methods
Method: Parameters: Return What it does:
value:
Clear None Clear the descriptor
Erase Key as Long None Erase a key from the descriptor
GetBoolean Key as Long Boolean Get the value of a key of type boolean
GetClass Key as Long Long Get the value of a key of type class
GetDouble Key as Long Double Get the value of a key of type double
GetEnumerationType Key as Long Long Get the enumeration type of a key
GetEnumerationValue Key as Long Long Get the enumeration value of a key
GetInteger Key as Long Long Get the value of a key of type integer
GetKey Index as Long Long Get ID of the Nth key
GetList Key as Long ActionList Get the value of a key of type list
GetObjectType Key as Long Long Get the class ID of an object in a key of type object
GetObjectValue Key as Long ActionDe- Get the value of a key of type object
scriptor
GetPath Key as Long String Get the value of a key of type Alias
GetReference Key as Long ActionRefer- Get the value of a key of type ActionReference
ence
GetString Key as Long String Get the value of a key of type string
GetType Key as Long PsDescValu- Get the type of a key
eType
GetUnitDoubleType Key as Long Long Get the unit type of a key of type UnitDouble
GetUnitDoubleValue Key as Long Double Get the value of a key of type UnitDouble
HasKey Key as Long Boolean does the descriptor contain the provided key?
IsEqual OtherDesc as ActionDe- Boolean
scriptor
PutBoolean Key as Long, Value as None
Boolean
PutClass Key as Long, Value as Long None
PutDouble Key as Long, Value as None
Double
PutEnumerated Key as Long, EnumType as None
Long, Value as Long
PutInteger Key as Long, Value as Long None
PutList Key as Long, Value as None
ActionList
PutObject Key as Long, ClassID as None
Long, Value as ActionDe-
scriptor
1
VBScript Reference
Method: Parameters: Returns: What it does:
PutPath Key as Long, Value as String None
PutReference Key as Long, Value as Ac- None
tionReference
PutString Key as Long, Value as String None
PutUnitDouble Key as Long, UnitID as None
Long, Value as Double
2
VBScript Reference
ActionList
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of items in the list
Methods
Method: Parameters: Return What it does:
value:
Clear None Clear the list
GetBoolean Index as Long Boolean Get the value of an item of type boolean
GetClass Index as Long Long Get the value of an item of type class
GetDouble Index as Long Double Get the value of an item of type double
GetEnumerationType Index as Long Long Get the enumeration type of an item
GetEnumerationValue Index as Long Long Get the enumeration value of an item
GetInteger Index as Long Long Get the value of an item of type integer
GetList Index as Long ActionList Get the value of an item of type list
GetObjectType Index as Long Long Get the class ID of an object in an item of type
object
GetObjectValue Index as Long ActionDe- Get the value of an item of type object
scriptor
GetPath Index as Long String Get the value of an item of type Alias
GetReference Index as Long ActionRefer- Get the value of an item of type ActionReference
ence
GetString Index as Long String Get the value of an item of type string
GetType Index as Long PsDescValu- Get the type of an item
eType
GetUnitDoubleType Index as Long Long Get the unit type of an item of type UnitDouble
GetUnitDoubleValue Index as Long Double Get the value of anm item of type UnitDouble
PutBoolean Value as Boolean None
PutClass Value as Long None
PutDouble Value as Double None
PutEnumerated EnumType as Long, Value None
as Long
PutInteger Value as Long None
PutList Value as ActionList None
PutObject ClassID as Long, Value as None
ActionDescriptor
PutPath Value as String None
PutReference Value as ActionReference None
PutString Value as String None
PutUnitDouble UnitID as Long, Value as None
Double
3
VBScript Reference
ActionReference
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Methods
Method: Parameters: Return What it does:
value:
GetContainer ActionRefer-
ence
GetDesiredClass Long
GetEnumeratedType Long Get type of enumeration of an ActionReference
whose form is  Enumerated
GetEnumeratedValue Long Get value of enumeration of an ActionReference
whose form is  Enumerated
GetForm PsReference- Get form of ActionReference
FormType
GetIdentifier Long Get identifier value for an ActionReference whoxse
form is  Identifier
GetIndex Long Get index value for an ActionReference whoxse
form is  Index
GetName String Get name value for an ActionReference whoxse
form is  Name
GetOffset Long Get offset value for an ActionReference whoxse
form is  Offset
GetProperty Long Get property ID value for an ActionReference
whoxse form is  Property
PutClass DesiredClass as Long None
PutEnumerated DesiredClass as Long, None
EnumType as Long, Value
as Long
PutIdentifier DesiredClass as Long, Value None
as Long
PutIndex DesiredClass as Long, Value None
as Long
PutName DesiredClass as Long, Value None
as String
PutOffset DesiredClass as Long, Value None
as Long
PutProperty DesiredClass as Long, Value None
as Long
4
VBScript Reference
Application
Properties
Property: Value type: Access: What it is:
ActiveDocument Document object read/write the frontmost document
Application Application object read only application that the collection belongs to
BackgroundColor SolidColor object read/write
ColorSettings String read only color settings
DisplayDialogs PsDialogModes constant read/write controls whether or not Photoshop displays dialogs
(psDisplayAllDialogs (1),
psDisplayErrorDialogs (2),
or psDisplayNoDialogs (3))
Documents Documents object read only the open documents
Fonts TextFonts object read only the fonts installed on this system
ForegroundColor SolidColor object read/write
FreeMemory Double read only the amount of unused memory available to Adobe
Photoshop
Name String read only the application s name
Path String read only the full path of the location of the Photoshop ap-
plication
Preferences Preferences object read only preference settings
ScriptingVersion String read only the version of the Scripting interface
Version String read only the version of Adobe Photoshop application
Visible Boolean read/write is the Photoshop UI is visible?
WinColorSettings String read only color settings
Methods
Method: Parameters: Return What it does:
value:
ChangeColorSettings [Name as Variant], [File as None set Color Settings to a named set or to the contents
Variant] of a settings file
CharIDToTypeID CharID as String Long convert from a four character code to a runtime ID
DoAction Action as String, From as None play an action from the Actions Palette
String
DoJavaScript JavaScriptCode as String, String execute JavaScript code
[Arguments as Variant],
[ExecutionMode as Variant]
DoJavaScriptFile JavaScriptFile as String, String execute javascript file
[Arguments as Variant],
[ExecutionMode as Variant]
ExecuteAction EventID as Long, [Descrip- ActionDe- play an ActionManager event
tor as Variant], [DisplayDi- scriptor
alogs as Variant]
ExecuteActionGet Reference as ActionRefer- ActionDe- obtain an action descriptor
ence scriptor
Load Document as String None load a support document
5
VBScript Reference
Method: Parameters: Returns: What it does:
MakePDFPresentation InputFiles as Variant, Out- String create a PDF presentation file
putFile as String, [Options
as Variant]
MakePhotoGallery InputFolder as String, String create a web photo gallery
OutputFolder as String,
[Options as Variant]
Open Document as String, [As as Document open the specified document
Variant]
Purge Target as constant (psUn- None purges one or more caches
doCaches (1), psHistory-
Caches (2), psClipboard-
Cache (3), or psAllCaches
(4))
Quit None quit the application
StringIDToTypeID StringID as String Long convert from a string ID to a runtime ID
TypeIDToCharID TypeID as Long String convert from a runtime ID to a character ID
TypeIDToStringID TypeID as Long String convert from a runtime ID to a string ID
6
VBScript Reference
ArtLayer
Properties
Property: Value type: Access: What it is:
AllLocked Boolean read only
Application Application object read only application that the collection belongs to
ArtLayer ArtLayer object read only If the Layer is a ArtLayer then this property will
return a reference to the corresponding ArtLayer
object
BlendMode PsBlendMode constant (ps- read only
PassThrough (1), psNormal-
Blend (2), psDissolve (3),
psDarken (4), psMultiply
(5), psColorBurn (6), psLin-
earBurn (7), psLighten (8),
psScreen (9), psColorDodge
(10), psLinearDodge (11),
psOverlay (12), psSoftLight
(13), psHardLight (14),
psVividLight (15), psLin-
earLight (16), psPinLight
(17), psDifference (18),
psExclusion (19), psHue
(20), psSaturationBlend
(21), psColorBlend (22), or
psLuminosity (23))
Bounds Variant read only Bounding rectangle of the Layer
FillOpacity Double read only the interior opacity of the layer (between 0.0 and
100.0)
Grouped Boolean read only is the layer grouped with the layer below?. Photo-
shop CS changed the menu name to Create/Release
Clipping Mask
IsBackgroundLayer Boolean read only is the layer a background layer?
Kind PsLayerKind constant read only to create a text layer set this property to  text layer
(psNormalLayer (1), on an empty art layer of type  normal
psTextLayer (2), psSolidFill-
Layer (3), psGradientFill-
Layer (4), psPatternFill-
Layer (5), psLevelsLayer
(6), psCurvesLayer (7),
psColorBalanceLayer (8),
psBrightnessContrastLayer
(9), psHueSaturationLayer
(10), psSelectiveColorLayer
(11), psChannelMixerLayer
(12), psGradientMapLayer
(13), psInversionLayer (14),
psThresholdLayer (15), or
psPosterizeLayer (16))
Layer Object read only The Layer corresponding to the ArtLayer
7
VBScript Reference
Property: Value type: Access: What it is:
LayerSet LayerSet object read only If the Layer is a LayerSet then this property will
return a reference to the corresponding LayerSet
object
LayerType PsLayerType constant read only Type of the Layer
(psArtLayer (1) or psLayer-
Set (2))
LinkedLayers Variant read only
Name String read only the name of the layer
Opacity Double read only master opacity of layer ( 0.0 - 100.0 )
Parent Object read only the object s container
PixelsLocked Boolean read only
PositionLocked Boolean read only
TextItem TextItem object read only the text item that is associated with the art layer.
Only valid for art layers whose  has text is true
TransparentPixelsLocked Boolean read only
Visible Boolean read only
Methods
Method: Parameters: Return What it does:
value:
AdjustBrightnessContrast Brightness as Long, Con- None adjust brightness and constrast
trast as Long
AdjustColorBalance [Shadows as Variant], [Mid- None
tones as Variant], [High-
lights as Variant], [Preserve-
Luminosity as Variant]
AdjustCurves CurveShape as Variant None adjust curves of the selected channels
AdjustLevels InputRangeStart as Long, None adjust levels of the selected channels
InputRangeEnd as Long,
InputRangeGamma as
Double, OutputRangeStart
as Long, OutputRangeEnd
as Long
ApplyAddNoise Amount as Double, None apply the add noise filter
Distribution as constant
(psUniformNoise (1) or
psGaussianNoise (2)),
Monochromatic as Boolean
ApplyBlur None apply the blur filter
ApplyBlurMore None apply the blur more filter
ApplyClouds None apply the clouds filter
ApplyCustomFilter Characteristics as Variant, None apply the custom filter
Scale as Long, Offset as
Long
8
VBScript Reference
Method: Parameters: Returns: What it does:
ApplyDeInterlace EliminateFields as constant None apply the De-Interlace filter
(psOddFields (1) or psEven-
Fields (2)), CreateFields as
constant (psDuplication (1)
or psInterpolation (2))
ApplyDespeckle None apply the despeckle filter
ApplyDifferenceClouds None apply the difference clouds filter
ApplyDiffuseGlow Graininess as Long, GlowA- None apply the diffuse glow filter
mount as Long, ClearA-
mount as Long
ApplyDisplace HorizontalScale as Long, None apply the displace filter
VerticalScale as Long, Dis-
placementType as constant
(psStretchToFit (1) or psTile
(2)), UndefinedAreas as
constant (psWrapAround
(1) or psRepeatEdgePixels
(2)), DisplacementMapFile
as String
ApplyDustAndScratches Radius as Long, Threshold None apply the dust and scratches filter
as Long
ApplyGaussianBlur Radius as Double None apply the Gaussian blur filter
ApplyGlassEffect Distortion as Long, None apply the glass filter
Smoothness as Long, Scal-
ing as Long, [Invert as Vari-
ant], [Texture as Variant],
[TextureFile as Variant]
ApplyHighPass Radius as Double None apply the high pass filter
ApplyLensFlare Brightness as Long, Flare- None apply the lens flare filter
Center as Variant, LensType
as constant (psZoom-
Lens (1), psPrime35 (2),
psPrime105 (3), or psMov-
iePrime (5))
ApplyMaximum Radius as Double None apply the maximum filter
ApplyMedianNoise Radius as Double None apply the median noise filter
ApplyMinimum Radius as Double None apply the minimum filter
ApplyMotionBlur Angle as Long, Radius as None apply the motion blur filter
Double
ApplyNTSC None apply the NTSC colors filter
ApplyOceanRipple Size as Long, Magnitude as None apply the ocean ripple filter
Long
ApplyOffset Horizontal as Double, None apply the offset filter
Vertical as Double, Un-
definedAreas as constant
(psOffsetSetToLayerFill (1),
psOffsetWrapAround (2),
or psOffsetRepeatEdgePix-
els (3))
ApplyPinch Amount as Long None apply the pinch filter
9
VBScript Reference
Method: Parameters: Returns: What it does:
ApplyPolarCoordinates Conversion as constant None apply the polar coordinates filter
(psRectangularToPolar (1)
or psPolarToRectangular
(2))
ApplyRadialBlur Amount as Long, Blur- None apply the radial blur filter
Method as constant
(psSpin (1) or psZoom (2)),
BlurQuality as constant
(psRadialBlurDraft (1),
psRadialBlurGood (2), or
psRadialBlurBest (3))
ApplyRipple Amount as Long, Size as None apply the ripple filter
constant (psSmallRipple (1),
psMediumRipple (2), or
psLargeRipple (3))
ApplySharpen None apply the sharpen filter
ApplySharpenEdges None apply the sharpen edges filter
ApplySharpenMore None apply the sharpen more filter
ApplyShear Curve as Variant, Unde- None apply the shear filter
finedAreas as constant
(psWrapAround (1) or
psRepeatEdgePixels (2))
ApplySmartBlur Radius as Double, Thresh- None apply the smart blur filter
old as Double, BlurQuality
as constant (psSmartBlur-
Low (1), psSmartBlurMe-
dium (2), or psSmart-
BlurHigh (3)), Mode as
constant (psSmartBlurN-
ormal (1), psSmartBlurEd-
geOnly (2), or psSmartBlu-
rOverlayEdge (3))
ApplySpherize Amount as Long, Mode as None apply the spherize filter
constant (psNormalSpher-
ize (1), psHorizontalSpher-
ize (2), or psVerticalSpher-
ize (3))
ApplyStyle StyleName as String None
ApplyTextureFill TextureFile as String None apply the texture fill filter
ApplyTwirl Angle as Long None apply the twirl filter
ApplyUnSharpMask Amount as Double, Radius None apply the unsharp mask filter
as Double, Threshold as
Long
10
VBScript Reference
Method: Parameters: Returns: What it does:
ApplyWave GeneratorNumber as Long, None apply the wave filter
MinimumWavelength as
Long, MaximumWave-
length as Long, Minimu-
mAmplitude as Long,
MaximumAmplitude as
Long, HorizontalScale as
Long, VerticalScale as Long,
WaveType as constant
(psSine (1), psTriangular
(2), or psSquare (3)), Un-
definedAreas as constant
(psWrapAround (1) or
psRepeatEdgePixels (2)),
RandomSeed as Long
ApplyZigZag Amount as Long, Ridges None apply the zigzag filter
as Long, Style as constant
(psAroundCenter (1),
psOutFromCenter (2), or
psPondRipples (3))
AutoContrast None adjust contrast of the selected channels automati-
cally
AutoLevels None adjust levels of the selected channels using auto
levels option
Clear None
Copy [Merge as Variant] None
Cut None
Delete None delete the object
Desaturate None
Duplicate [RelativeObject as Vari- Object create a duplicate of the object
ant], [InsertionLocation as
Variant]
Equalize None equalize the levels
Invert None inverts the currently selected layer or channels
Link Application object None link the layer with another layer
Merge ArtLayer merges the layer down. This will remove the layer
from the document. The method returns a refer-
ence to the art layer that this layer is merged into
MixChannels OutputChannels as Variant, None only valid for RGB or CMYK documents
[Monochrome as Variant]
Move Application object, None move the object
InsertionLocation as con-
stant (psPlaceInside (0),
psPlaceAtBeginning (1),
psPlaceAtEnd (2), psPlace-
Before (3), or psPlaceAfter
(4))
Posterize Levels as Long None
11
VBScript Reference
Rasterize Target as constant (psText- None
Contents (1), psShape (2),
psFillContent (3), psLayer-
ClippingPath (4), psEntire-
Layer (5), or psLinkedLay-
ers (6))
Resize [Horizontal as Variant], None
[Vertical as Variant], [An-
chor as Variant]
Rotate Angle as Double, [Anchor None
as Variant]
SelectiveColor SelectionMethod as con- None
stant (psRelative (1) or
psAbsolute (2)), [Reds as
Variant], [Yellows as Vari-
ant], [Greens as Variant],
[Cyans as Variant], [Blues
as Variant], [Magentas as
Variant], [Whites as Vari-
ant], [Neutrals as Variant],
[Blacks as Variant]
Threshold Level as Long None
Translate [DeltaX as Variant], [DeltaY None moves the position relative to its current position
as Variant]
Unlink None unlink the layer
12
VBScript Reference
ArtLayers
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item ArtLayer object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Add ArtLayer create a new object
Index ItemPtr as ArtLayer Long
RemoveAll None
13
VBScript Reference
BitmapConversionOptions
Properties
Property: Value type: Access: What it is:
Angle Double read/write only valid for  halftone screen conversions
Application Application object read only application that the collection belongs to
Frequency Double read/write only valid for  halftone screen conversions
Method PsBitmapConversionType read/write ( default: DiffusionDither )
constant (psHalfThreshold
(1), psPatternDither (2),
psDiffusionDither (3),
psHalftoneScreen (4), or
psCustomPattern (5))
PatternName String read/write only valid for  custom pattern conversions
Resolution Double read/write output resolution (in pixels per inch)
Shape PsBitmapHalfToneType read/write only valid for  halftone screen conversions
constant (psHalftoneRound
(1), psHalftoneDiamond
(2), psHalftoneEllipse
(3), psHalftoneLine (4),
psHalftoneSquare (5), or
psHalftoneCross (6))
14
VBScript Reference
BMPSaveOptions
Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write save alpha channels
Application Application object read only application that the collection belongs to
Depth PsBMPDepthType read/write number of bits per sample ( default: BMP24Bits )
constant (psBMP1Bit
(1), psBMP4Bits
(4), psBMP8Bits (8),
psBMP16Bits (16),
psBMP24Bits (24),
psBMP32Bits (32), ps-
BMP_X1R5G5B5 (60),
psBMP_A1R5G5B5 (61),
psBMP_R5G6B5 (62),
psBMP_X4R4G4B4 (63),
psBMP_A4R4G4B4 (64),
psBMP_R8G8B8 (65), ps-
BMP_X8R8G8B8 (66), or
psBMP_A8R8G8B8 (67))
FlipRowOrder Boolean read/write
OSType PsOperatingSystem con- read/write target OS. Windows or OS/2 ( default: Windows )
stant (psOS2 (1) or psWin-
dows (2))
RLECompression Boolean read/write should RLE compression be used?
15
VBScript Reference
Channel
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Color SolidColor object read only color of the channel (not valid for component
channels)
Histogram Variant read only a histogram of values for the channel
Kind PsChannelType constant read only type of the channel
(psComponentChannel (1),
psMaskedAreaAlphaChan-
nel (2), psSelectedAr-
eaAlphaChannel (3), or
psSpotColorChannel (4))
Name String read only the channel s name
Opacity Double read only opacity of alpha channels (called solidity for spot
channels)
Parent Object read only the object s container
Visible Boolean read only
Methods
Method: Parameters: Return What it does:
value:
Delete None delete the object
Duplicate [TargetDocument as Vari- Channel duplicate the channel
ant]
Merge None merge a spot channel into the component channels
16
VBScript Reference
Channels
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item Channel object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Add Channel create a new object
Index ItemPtr as Channel Long
RemoveAll None
17
VBScript Reference
CMYKColor
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Black Double read/write the black color value (between 0.0 and 100.0)
Cyan Double read/write the cyan color value (between 0.0 and 100.0)
Magenta Double read/write the magenta color value (between 0.0 and 100.0)
Yellow Double read/write the yellow color value (between 0.0 and 100.0)
18
VBScript Reference
DCS1_SaveOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
DCS PsDCSType constant (ps- read/write ( default: ColorComposite )
NoComposite (1), psGray-
scaleComposite (2), or
psColorComposite (3))
EmbedColorProfile Boolean read/write embed color profile in document
Encoding PsSaveEncoding constant read/write type of encoding to use for document ( default:
(psAscii (3), psBinary (1), Binary )
psJPEGLow (2), psJPEGMe-
dium (4), psJPEGHigh (5),
or psJPEGMaximum (6))
HalftoneScreen Boolean read/write include halftone screen ( default: false )
Interpolation Boolean read/write use image interpolation ( default: false )
Preview PsPreviewType constant read/write type of preview ( default: MonochromeTIFF )
(psNoPreview (1), psMono-
chromeTIFF (2), or psEi-
ghtBitTIFF (3))
TransferFunction Boolean read/write include transfer functions in document ( default:
false )
VectorData Boolean read/write include vector data
19
VBScript Reference
DCS2_SaveOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
DCS PsDCSType constant (ps- read/write ( default: NoComposite )
NoComposite (1), psGray-
scaleComposite (2), or
psColorComposite (3))
EmbedColorProfile Boolean read/write embed color profile in document
Encoding PsSaveEncoding constant read/write type of encoding to use for document ( default:
(psAscii (3), psBinary (1), Binary )
psJPEGLow (2), psJPEGMe-
dium (4), psJPEGHigh (5),
or psJPEGMaximum (6))
HalftoneScreen Boolean read/write include halftone screen ( default: false )
Interpolation Boolean read/write use image interpolation ( default: false )
MultiFileDCS Boolean read/write ( default: false )
Preview PsPreviewType constant read/write type of preview ( default: MonochromeTIFF )
(psNoPreview (1), psMono-
chromeTIFF (2), or psEi-
ghtBitTIFF (3))
SpotColors Boolean read/write save spot colors
TransferFunction Boolean read/write include transfer functions in document ( default:
false )
VectorData Boolean read/write include vector data
20
VBScript Reference
Document
Properties
Property: Value type: Access: What it is:
ActiveChannels Variant read only selected channels for document
ActiveHistoryBrushSource HistoryState object read only the current history state to use with the history
brush for this document
ActiveHistoryState HistoryState object read only the current history state for this document
ActiveLayer Object read only selected layer for document
Application Application object read only application that the collection belongs to
ArtLayers ArtLayers object read only the top level art layers in this document
BackgroundLayer ArtLayer object read only background layer for the document. Only valid for
documents that have a background layer
BitsPerChannel PsBitsPerChannelType con- read only number of bits per channel
stant (psDocument1Bit (1),
psDocument8Bits (8), or
psDocument16Bits (16))
Channels Channels object read only the channels in this document
ColorProfileName String read only name of color profile for document. Only valid for
documents that have been assigned a color profile
ColorProfileType PsColorProfileType con- read only type of color profile management for document
stant (psNo (1), psWorking
(2), or psCustom (3))
ComponentChannels Variant read only all color component channels for this document
FullName String read only full path name of document
Height Double read only height of document (unit value)
Histogram Variant read only a histogram of values for the composite document
(only for RGB, CMYK and  Indexed colors docu-
ments)
HistoryStates HistoryStates object read only the history states associated with this document
Info DocumentInfo object read only document information
LayerComps LayerComps object read only the layer comps associated with this document
Layers Layers object read only the top level layers in this document
LayerSets LayerSets object read only the top level layer sets in this document
Managed Boolean read only is the document a workgroup document?
Mode PsDocumentMode constant read only document mode
(psGrayscale (1), psRGB
(2), psCMYK (3), psLab (4),
psBitmap (5), psIndexed-
Color (6), psMultiChannel
(7), or psDuotone (8))
Name String read only the document s name
Parent Object read only the object s container
Path String read only the path of the document
PathItems PathItems object read only the art paths associated with this document
PixelAspectRatio Double read only the pixel aspect ration of the document
21
VBScript Reference
Method: Parameters: Returns: What it does:
QuickMaskMode Boolean read only is the document in the quick mask mode?
Resolution Double read only the resolution of the document (in pixels per inch)
Saved Boolean read only has the document been saved since last change?
Selection Selection object read only the document s selection
Width Double read only width of document (unit value)
XMPMetadata XMPMetadata object read only
Methods
Method: Parameters: Return What it does:
value:
ChangeMode DestinationMode as con- None change the mode of the document
stant (psConvertToGray-
scale (1), psConvertToRGB
(2), psConvertToCMYK
(3), psConvertToLab (4),
psConvertToBitmap (5),
psConvertToIndexedColor
(6), or psConvertToMulti-
Channel (7)), [Options as
Variant]
Close [Saving as Variant] None close the document
ConvertProfile DestinationProfile as String, None convert the document from using one color profile
Intent as constant (psPer- to using an other
ceptual (1), psSaturation
(2), psRelativeColorimetric
(3), or psAbsoluteColori-
metric (4)), [BlackPoint-
Compensation as Variant],
[Dither as Variant]
Crop Bounds as Variant, [Angle None crop the document
as Variant], [Width as Vari-
ant], [Height as Variant]
Duplicate Document create a duplicate of the object
Export ExportIn as String, [Expor- None
tAs as Variant], [Options as
Variant]
Flatten None flatten all layers in the document
FlipCanvas Direction as constant None flip the canvas horizontally or vertically
(psHorizontal (1) or psVer-
tical (2))
ImportAnnotations File as String None import annotations into the document
MergeVisibleLayers None flatten all visible layers in the document
Paste [IntoSelection as Variant] ArtLayer paste contents of clipboard into the document
PrintOut [PostScriptEncoding as None print the document
Variant], [SourceSpace as
Variant], [PrintSpace as
Variant], [Intent as Variant],
[BlackPointCompensation
as Variant]
22
VBScript Reference
RasterizeAllLayers None rasterize all layers
ResizeCanvas [Width as Variant], [Height None change the size of the canvas
as Variant], [Anchor as
Variant]
ResizeImage [Width as Variant], [Height None change the size of the image
as Variant], [Resolution as
Variant], [ResampleMethod
as Variant]
RevealAll None expand document to show clipped sections
RotateCanvas Angle as Double None rotate canvas of document
Save None save the document
SaveAs SaveIn as String, [Options None save the document with specific save options
as Variant], [AsCopy as
Variant], [ExtensionType as
Variant]
SplitChannels Variant split channels of the document
Trap Width as Long None apply trap to a CMYK document
Trim [Type as Variant], [Top as None
Variant], [Left as Variant],
[Bottom as Variant], [Right
as Variant]
23
VBScript Reference
DocumentInfo
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Author String read only
AuthorPosition String read only
Caption String read only
CaptionWriter String read only
Category String read only
City String read only
Copyrighted PsCopyrightedType con- read only
stant (psCopyrightedWork
(1), psPublicDomain (2), or
psUnmarked (3))
CopyrightNotice String read only
Country String read only
CreationDate String read only
Credit String read only
EXIF Variant read only
Headline String read only
Instructions String read only
JobName String read only
Keywords Variant read only list of keywords
OwnerUrl String read only
Parent Object read only the object s container
ProvinceState String read only
Source String read only
SupplementalCategories Variant read only
Title String read only
TransmissionReference String read only
Urgency PsUrgency constant (ps- read only
None (0), psLow (1), psTwo
(2), psThree (3), psFour (4),
psNormal (5), psSix (6),
psSeven (7), or psHigh (8))
24
VBScript Reference
Documents
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item Document object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Add [Width as Variant], [Height Document a document
as Variant], [Resolution as
Variant], [Name as Variant],
[Mode as Variant], [Initial-
Fill as Variant], [PixelAs-
pectRatio as Variant]
Index ItemPtr as Document Long
25
VBScript Reference
EPSOpenOptions
Properties
Property: Value type: Access: What it is:
AntiAlias Boolean read/write use antialias?
Application Application object read only application that the collection belongs to
ConstrainProportions Boolean read/write constrain proportions of image
Height Double read/write height of image (unit value)
Mode PsOpenDocumentMode read/write the document mode
constant (psOpenGray (1),
psOpenRGB (2), psOpenC-
MYK (3), or psOpenLab
(4))
Resolution Double read/write the resolution of the document (in pixels per inch)
Width Double read/write width of image (unit value)
26
VBScript Reference
EPSSaveOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
EmbedColorProfile Boolean read/write embed color profile in document
Encoding PsSaveEncoding constant read/write type of encoding to use for document ( default:
(psAscii (3), psBinary (1), Binary )
psJPEGLow (2), psJPEGMe-
dium (4), psJPEGHigh (5),
or psJPEGMaximum (6))
HalftoneScreen Boolean read/write include halftone screen ( default: false )
Interpolation Boolean read/write use image interpolation ( default: false )
Preview PsPreviewType constant read/write type of preview ( default: MonochromeTIFF )
(psNoPreview (1), psMono-
chromeTIFF (2), or psEi-
ghtBitTIFF (3))
PSColorManagement Boolean read/write use Postscript color management ( default: false )
TransferFunction Boolean read/write include transfer functions in document ( default:
false )
TransparentWhites Boolean read/write only valid when saving BitMap documents
VectorData Boolean read/write include vector data
27
VBScript Reference
ExportOptionsIllustrator
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Path PsIllustratorPathType con- read/write which path to export ( default: DocumentBounds )
stant (psDocumentBounds
(1), psAllPaths (2), or
psNamedPath (3))
PathName String read/write name of path to export. Only valid if you are ex-
porting a named path
28
VBScript Reference
GalleryBannerOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
ContactInfo String read/write web photo gallery contact info ( default: )
Date String read/write web photo gallery date ( default: )
Font PsGalleryFontType constant read/write the font setting for the banner text ( default: Arial )
(psArial (1), psCourierNew
(2), psHelvetica (3), or
psTimesNewRoman (4))
FontSize Long read/write the size of the font for the banner text ( 1 - 7;
default: 3 )
Photographer String read/write web photo gallery photographer ( default: )
SiteName String read/write web photo gallery site name ( default: Adobe Web
Photo Gallery )
29
VBScript Reference
GalleryCustomColorOptions
Properties
Property: Value type: Access: What it is:
ActiveLinkColor RGBColor object read/write active link color
Application Application object read only application that the collection belongs to
BackgroundColor RGBColor object read/write background color
BannerColor RGBColor object read/write banner color
LinkColor RGBColor object read/write link color
TextColor RGBColor object read/write text color
VisitedLinkColor RGBColor object read/write visited link color
30
VBScript Reference
GalleryImagesOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Border Long read/write the amount of border pixels you want between
your images ( 0 - 99; default: 0 )
Caption Boolean read/write generate a caption for the images ( default: false )
Dimension Long read/write resized image dimensions in pixels ( default: 350 )
Font PsGalleryFontType constant read/write font for the gallery images text ( default: Arial )
(psArial (1), psCourierNew
(2), psHelvetica (3), or
psTimesNewRoman (4))
FontSize Long read/write font size for the gallery images text ( 1 - 7; default:
3 )
ImageQuality Long read/write the quality setting for the JPEG image ( 0 - 12;
default: 5 )
IncludeCopyright Boolean read/write include the copyright in the text for the gallery im-
ages ( default: false )
IncludeCredits Boolean read/write include the credits in the text for the gallery images
( default: false )
IncludeFilename Boolean read/write include the file name in the text for the gallery im-
ages ( default: true )
IncludeTitle Boolean read/write include the title in the text for the gallery images (
default: false )
NumericLinks Boolean read/write add numeric links ( default: true )
ResizeConstraint PsGalleryConstrainType read/write how should the image be constrained ( default:
constant (psConstrain- ConstrainBoth )
Width (1), psConstrain-
Height (2), or psConstrain-
Both (3))
ResizeImages Boolean read/write resize images data ( default: true )
31
VBScript Reference
GalleryOptions
Properties
Property: Value type: Access: What it is:
AddSizeAttributes Boolean read/write add width and height attributes for images ( de-
fault: true )
Application Application object read only application that the collection belongs to
BannerOptions GalleryBannerOptions read/write options related to banner settings
object
CustomColorOptions GalleryCustomColorOp- read/write options related to custom color settings
tions object
EmailAddress String read/write the email address to show on the web page (
default: )
ImagesOptions GalleryImagesOptions read/write options related to images settings
object
IncludeSubFolders Boolean read/write include all files found in sub folders of the input
folder ( default: true )
LayoutStyle String read/write the style to use for laying out the web page ( de-
fault: Centered Frame 1 - Basic )
PreserveAllMetadata Boolean read/write save all of the metadata in the JPEG files ( default:
false )
SecurityOptions GallerySecurityOptions read/write options related to security settings
object
ThumbnailOptions GalleryThumbnailOptions read/write options related to thumbnail settings
object
UseShortExtension Boolean read/write short web page extension .htm or long web page
extension .html ( default: true )
UseUTF8Encoding Boolean read/write web page should use UTF-8 encoding ( default:
false )
32
VBScript Reference
GallerySecurityOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Content PsGallerySecurityType read/write web photo gallery security content ( default: NoS-
constant (psNoSecurity (1), ecurity )
psCustomSecurityText (2),
psFilename (3), psCopy-
right (4), psCaption (5),
psCredit (6), or psTitle (7))
Font PsGalleryFontType constant read/write web photo gallery security font ( default: Arial )
(psArial (1), psCourierNew
(2), psHelvetica (3), or
psTimesNewRoman (4))
FontSize Long read/write web photo gallery security font size ( minimum 1;
default: 36 )
Opacity Long read/write web page security opacity as a percent ( default:
100 )
Text String read/write web photo gallery security custom text ( default: )
TextColor RGBColor object read/write web page security text color
TextPosition PsGallerySecurityTextPosi- read/write web photo gallery security text position ( default:
tionType constant (psCen- Centered )
tered (1), psUpperLeft (2),
psLowerLeft (3), psUpper-
Right (4), or psLowerRight
(5))
TextRotate PsGallerySecurityTextRo- read/write web photo gallery security text rotate ( default:
tateType constant (psZero Zero )
(1), psClockwise45 (2),
psClockwise90 (3), psCoun-
terClockwise45 (4), or
psCounterClockwise90 (5))
33
VBScript Reference
GalleryThumbnailOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Border Long read/write the amount of border pixels you want around your
thumbnail images ( 0 - 99; default: 0 )
Caption Boolean read/write with caption ( default: false )
ColumnCount Long read/write web photo gallery thumbnail columns ( default: 5 )
Dimension Long read/write web photo gallery thumbnail dimension in pixels (
default: 75 )
Font PsGalleryFontType constant read/write web photo gallery font ( default: Arial )
(psArial (1), psCourierNew
(2), psHelvetica (3), or
psTimesNewRoman (4))
FontSize Long read/write the size of the font for the thumbnail images text (
1 - 7; default: 3 )
IncludeCopyright Boolean read/write include copyright for thumbnail ( default: false )
IncludeCredits Boolean read/write include credits for thumbnail ( default: false )
IncludeFilename Boolean read/write include file name for thumbnail ( default: false )
IncludeTitle Boolean read/write include title for thumbnail ( default: false )
RowCount Long read/write web photo gallery thumbnail rows ( default: 3 )
Size PsGalleryThumbSizeType read/write the size of the thumbnail images ( default: Medium
constant (psSmall (1), )
psMedium (2), psLarge (3),
or psCustomThumbnail (4))
34
VBScript Reference
GIFSaveOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Colors Long read/write number of colors in palette (only settable for some
palette types)
Dither PsDitherType constant read/write type of dither
(psNoDither (1), psDiffu-
sion (2), psPattern (3), or
psNoise (4))
DitherAmount Long read/write amount of dither. Only valid for diffusion ( 1 - 100;
default: 75 )
Forced PsForcedColors constant read/write
(psNoForced (1), psBlack-
White (2), psPrimaries (3),
or psWeb (4))
Interlaced Boolean read/write should rows be interlaced? ( default: false )
Matte PsMatteType constant read/write
(psNoMatte (1), psFore-
groundColorMatte (2),
psBackgroundColorMatte
(3), psWhiteMatte (4), ps-
BlackMatte (5), psSemiGray
(6), or psNetscapeGray-
Matte (7))
Palette PsPaletteType constant read/write ( default: LocalSelective )
(psExact (1), psMacOSPal-
ette (2), psWindowsPalette
(3), psWebPalette (4),
psUniform (5), psLocalPer-
ceptual (6), psLocalSelec-
tive (7), psLocalAdaptive
(8), psMasterPerceptual
(9), psMasterSelective (10),
psMasterAdaptive (11), or
psPreviousPalette (12))
PreserveExactColors Boolean read/write
Transparency Boolean read/write
35
VBScript Reference
GrayColor
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Gray Double read/write the gray value ( 0.0 - 100.0; default: 0.0 )
36
VBScript Reference
HistoryState
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Name String read only the history state s name
Parent Object read only the object s container
Snapshot Boolean read only is the history state a snapshot?
37
VBScript Reference
HistoryStates
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item HistoryState object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Index ItemPtr as HistoryState Long
38
VBScript Reference
HSBColor
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Brightness Double read/write the brightness value (between 0.0 and 100.0)
Hue Double read/write the hue value (between 0.0 and 360.0)
Saturation Double read/write the saturation value (between 0.0 and 100.0)
39
VBScript Reference
IndexedConversionOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Colors Long read/write number of colors in palette (only settable for some
palette types)
Dither PsDitherType constant read/write type of dither
(psNoDither (1), psDiffu-
sion (2), psPattern (3), or
psNoise (4))
DitherAmount Long read/write amount of dither. Only valid for diffusion ( 1 - 100
)
Forced PsForcedColors constant read/write
(psNoForced (1), psBlack-
White (2), psPrimaries (3),
or psWeb (4))
Matte PsMatteType constant read/write
(psNoMatte (1), psFore-
groundColorMatte (2),
psBackgroundColorMatte
(3), psWhiteMatte (4), ps-
BlackMatte (5), psSemiGray
(6), or psNetscapeGray-
Matte (7))
Palette PsPaletteType constant read/write Type of palette ( default: Exact )
(psExact (1), psMacOSPal-
ette (2), psWindowsPalette
(3), psWebPalette (4),
psUniform (5), psLocalPer-
ceptual (6), psLocalSelec-
tive (7), psLocalAdaptive
(8), psMasterPerceptual
(9), psMasterSelective (10),
psMasterAdaptive (11), or
psPreviousPalette (12))
PreserveExactColors Boolean read/write
Transparency Boolean read/write
40
VBScript Reference
JPEGSaveOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
EmbedColorProfile Boolean read/write embed color profile in document
FormatOptions PsFormatOptionsType con- read/write ( default: StandardBaseline )
stant (psStandardBaseline
(1), psOptimizedBaseline
(2), or psProgressive (3))
Matte PsMatteType constant read/write
(psNoMatte (1), psFore-
groundColorMatte (2),
psBackgroundColorMatte
(3), psWhiteMatte (4), ps-
BlackMatte (5), psSemiGray
(6), or psNetscapeGray-
Matte (7))
Quality Long read/write quality of produced image ( 0 - 12; default: 3 )
Scans Long read/write number of scans. Only valid for progressive type
JPEG files ( 3 - 5 )
41
VBScript Reference
LabColor
Properties
Property: Value type: Access: What it is:
A Double read/write the a-value (between -128.0 and 127.0)
Application Application object read only application that the collection belongs to
B Double read/write the b-value (between -128.0 and 127.0)
L Double read/write the L-value (between 0.0 and 100.0)
42
VBScript Reference
LayerComp
Properties
Property: Value type: Access: What it is:
Appearance Boolean read only use layer appearance
Application Application object read only application that the collection belongs to
Comment Variant read only the description of the layer comp
Name String read only the name of the layer comp
Parent Object read only the object s container
Position Boolean read only use layer position
Selected Boolean read only the layer comp is currently selected
Visibility Boolean read only use layer visibility
Methods
Method: Parameters: Return What it does:
value:
Apply None apply the layer comp to the document
Delete None delete the object
Recapture None recapture the current layer state(s) for this layer
comp
ResetFromComp None reset the layer comp state to the document state
43
VBScript Reference
LayerComps
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item LayerComp object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Add Name as String, [Comment LayerComp a layer comp
as Variant], [Appearance as
Variant], [Position as Vari-
ant], [Visibility as Variant]
Index ItemPtr as LayerComp Long
RemoveAll None
44
VBScript Reference
Layers
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item Object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Index Application object Long
RemoveAll None
45
VBScript Reference
LayerSet
Properties
Property: Value type: Access: What it is:
AllLocked Boolean read only
Application Application object read only application that the collection belongs to
ArtLayer ArtLayer object read only If the Layer is a ArtLayer then this property will
return a reference to the corresponding ArtLayer
object
ArtLayers ArtLayers object read only the art layers in this layer set
BlendMode PsBlendMode constant (ps- read only
PassThrough (1), psNormal-
Blend (2), psDissolve (3),
psDarken (4), psMultiply
(5), psColorBurn (6), psLin-
earBurn (7), psLighten (8),
psScreen (9), psColorDodge
(10), psLinearDodge (11),
psOverlay (12), psSoftLight
(13), psHardLight (14),
psVividLight (15), psLin-
earLight (16), psPinLight
(17), psDifference (18),
psExclusion (19), psHue
(20), psSaturationBlend
(21), psColorBlend (22), or
psLuminosity (23))
Bounds Variant read only Bounding rectangle of the Layer
EnabledChannels Variant read only channels that are enabled for the layer set. Must be
a list of component channels
Layer Object read only The Layer corresponding to the LayerSet
Layers Layers object read only the layers in this layer set
LayerSet LayerSet object read only If the Layer is a LayerSet then this property will
return a reference to the corresponding LayerSet
object
LayerSets LayerSets object read only the top level layer sets in this document
LayerType PsLayerType constant read only Type of the Layer
(psArtLayer (1) or psLayer-
Set (2))
LinkedLayers Variant read only
Name String read only the name of the layer
Opacity Double read only master opacity of layer ( 0.0 - 100.0 )
Parent Object read only the object s container
Visible Boolean read only
Methods
Method: Parameters: Return What it does:
value:
46
VBScript Reference
Delete None delete the object
Duplicate [RelativeObject as Vari- Object create a duplicate of the object
ant], [InsertionLocation as
Variant]
Link Application object None link the layer with another layer
Merge ArtLayer merge layerset. Returns a reference to the art layer
that is created by this method
Move Application object, None move the object
InsertionLocation as con-
stant (psPlaceInside (0),
psPlaceAtBeginning (1),
psPlaceAtEnd (2), psPlace-
Before (3), or psPlaceAfter
(4))
Resize [Horizontal as Variant], None
[Vertical as Variant], [An-
chor as Variant]
Rotate Angle as Double, [Anchor None
as Variant]
Translate [DeltaX as Variant], [DeltaY None moves the position relative to its current position
as Variant]
Unlink None unlink the layer
47
VBScript Reference
LayerSets
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item LayerSet object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Add LayerSet create a new object
Index ItemPtr as LayerSet Long
RemoveAll None
48
VBScript Reference
NoColor
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
49
VBScript Reference
PathItem
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Kind PsPathKind constant read only
(psNormalPath (1), psClip-
pingPath (2), psWorkPath
(3), psVectorMask (4), or
psTextMask (5))
Name String read only the name of the path item
Parent Object read only the object s container
SubPathItems SubPathItems object read only sub items for this path item
Methods
Method: Parameters: Return What it does:
value:
Delete None delete the object
Deselect None unselect this path item, no paths items are selected
Duplicate [Name as Variant] None duplicate this path
FillPath [FillColor as Variant], None fill the path with the following information
[Mode as Variant], [Opacity
as Variant], [PreserveTrans-
parency as Variant], [Feath-
er as Variant], [AntiAlias
as Variant], [WholePath as
Variant]
MakeClippingPath [Flatness as Variant] None make this path item the clipping path for this
document
MakeSelection [Feather as Variant], [Anti- None make a selection from this path
Alias as Variant], [Opera-
tion as Variant]
Select None make this path item the active or selected path
item
StrokePath [Tool as Variant], [Simulate- None stroke the path with the following information
Pressure as Variant]
5
VBScript Reference
PathItems
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item PathItem object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Add Name as String, EntirePath PathItem create a new path item
as Variant
Index ItemPtr as PathItem Long
RemoveAll None
51
VBScript Reference
PathPoint
Properties
Property: Value type: Access: What it is:
Anchor Variant read only the position (coordinates) of the anchor point
Application Application object read only application that the collection belongs to
Kind PsPointKind constant (psS- read only the type of point: smooth/corner
moothPoint (1) or psCorn-
erPoint (2))
LeftDirection Variant read only location of the left direction point (in position)
Parent Object read only the object s container
RightDirection Variant read only location of the right direction point (out position)
52
VBScript Reference
PathPointInfo
Properties
Property: Value type: Access: What it is:
Anchor Variant read/write the position of the anchor (in coordinates)
Application Application object read only application that the collection belongs to
Kind PsPointKind constant (psS- read/write the point type, smooth/corner
moothPoint (1) or psCorn-
erPoint (2))
LeftDirection Variant read/write location of the left direction point (in position)
RightDirection Variant read/write location of the left direction point (out position)
53
VBScript Reference
PathPoints
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Count Long read only number of elements in the collection
Item PathPoint object read only get an element from the collection
Parent Object read only the object s container
Methods
Method: Parameters: Return What it does:
value:
Index ItemPtr as PathPoint Long
54
VBScript Reference
PDFOpenOptions
Properties
Property: Value type: Access: What it is:
AntiAlias Boolean read/write use antialias?
Application Application object read only application that the collection belongs to
ConstrainProportions Boolean read/write constrain proportions of image
Height Double read/write height of image (unit value)
Mode PsOpenDocumentMode read/write the document mode
constant (psOpenGray (1),
psOpenRGB (2), psOpenC-
MYK (3), or psOpenLab
(4))
Page Long read/write number of page to open
Resolution Double read/write the resolution of the document (in pixels per inch)
Width Double read/write width of image (unit value)
55
VBScript Reference
PDFSaveOptions
Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write save alpha channels
Annotations Boolean read/write save annotations
Application Application object read only application that the collection belongs to
DowngradeColorProfile Boolean read/write should the embedded color profile be downgraded
to version 2
EmbedColorProfile Boolean read/write embed color profile in document
EmbedFonts Boolean read/write embed fonts? Only valid if a text layer is included
Encoding PsPDFEncodingType read/write ( default: PDFZip )
constant (psPDFZip (1) or
psPDFJPEG (2))
Interpolation Boolean read/write use image interpolation?
JPEGQuality Long read/write quality of produced image. Only valid for JPEG
encoded PDF documents ( 0 - 12 )
Layers Boolean read/write save layers
SpotColors Boolean read/write save spot colors
Transparency Boolean read/write
UseOutlines Boolean read/write use outlines for text? Only valid if vector data is
included
VectorData Boolean read/write include vector data
56
VBScript Reference
PhotoCDOpenOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
ColorProfileName String read/write profile to use when reading the image
ColorSpace PsPhotoCDColorSpace read/write colorspace for image
constant (psRGB8 (1),
psRGB16 (2), psLab8 (3),
or psLab16 (4))
Orientation PsOrientation constant (ps- read/write
Landscape (1) or psPortrait
(2))
PixelSize PsPhotoCDSize constant read/write dimensions of image
(psMinimumPhotoCD
(1), psSmallPhotoCD (2),
psMediumPhotoCD (3),
psLargePhotoCD (4), psEx-
traLargePhotoCD (5), or
psMaximumPhotoCD (6))
Resolution Double read/write the resolution of the image (in pixels per inch)
57
VBScript Reference
PhotoshopSaveOptions
Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write save alpha channels
Annotations Boolean read/write save annotations
Application Application object read only application that the collection belongs to
EmbedColorProfile Boolean read/write embed color profile in document
Layers Boolean read/write save layers
SpotColors Boolean read/write save spot colors
58
VBScript Reference
PICTFileSaveOptions
Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write save alpha channels
Application Application object read only application that the collection belongs to
Compression PsPICTCompression con- read/write ( default: NoPICTCompression )
stant (psNoPICTCompres-
sion (1), psJPEGLowPICT
(2), psJPEGMediumPICT
(4), psJPEGHighPICT (5),
or psJPEGMaximumPICT
(6))
EmbedColorProfile Boolean read/write embed color profile in document
Resolution PsPICTBitsPerPixels read/write number of bits per pixel
constant (psPICT2Bits
(2), psPICT4Bits
(4), psPICT8Bits (8),
psPICT16Bits (16), or
psPICT32Bits (32))
59
VBScript Reference
PixarSaveOptions
Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write save alpha channels
Application Application object read only application that the collection belongs to
6
VBScript Reference
PNGSaveOptions
Properties
Property: Value type: Access: What it is:
Application Application object read only application that the collection belongs to
Interlaced Boolean read/write should rows be interlaced? ( default: false )
61
VBScript Reference
PixarSaveOptions
Properties
Property: Value type: Access: What it is:
AlphaChannels Boolean read/write save alpha channels
Application Application object read only application that the collection belongs to
6


Wyszukiwarka

Podobne podstrony:
VB NET Programming with Microsoft Visual Basic NET?livery Guide
VOIP Reference Guide
Quick Reference Guide pl
Visual Basic Net Szybki start
Visual Basic 2005 Zapiski programisty
Programowanie Obiektowe W Visual Basic Net Dla Ka dego
Troll Blade Referee s Guide
Visual Basic 2005 Express Edition
Visual Basic w programie Excel funkcje definiowane, składnia języka
02 Wprowadzenie do Visual Basic cwiczenia przygotowujace

więcej podobnych podstron