Drawing Suite
373
Class: picture
Plural
pictures
Represents a picture object in the drawing layer of a document. The picture class inherits all the
properties of the
shape
class, which includes all the shapes in the main story of a document or in all
the headers and footers of a document.
Use picture index, where index is the name or the index number, to return a single picture object.
The following example adds a new picture to the drawing layer of
myDoc
. The inserted picture is
linked to the file from which it was created and is saved with the document.
set myDoc to active document
make new picture at myDoc with properties ¬
{file name:"Users:Shared:clipart:music.gif", link to file:true ¬
save with document:true}
Properties
<Inheritance> shape
Inherits the properties and elements of the shape class.
file name
Returns the file name of the picture used for the inline horizontal line. Read-only.
link to file
True if the inline picture is linked to the file. Read-only.
picture format
Returns a
picture format
object that contains picture formatting properties for the specified
picture object. Read-only.
save with document
True if the picture is saved with the document. Read-only.
Class: picture format
Plural
picture formats
Contains properties that apply to pictures.
Use the picture format property to return a picture format object. The following example sets the
brightness and contrast for picture 1 of the active document and crops 18 points off the bottom of
the picture. This example will only work on a picture object.
set brightness of picture format of picture 1 of active document to 0.3
set contrast of picture format of picture 1 of active document to 0.7
set crop bottom of picture format of picture 1 of active document to 18