Drawing Suite
406
Command: scale height
Scales the height of the picture by a specified factor. You can indicate whether you want to scale the
shape relative to the original size or relative to the current size.
Syntax
scale height picture Required. An expression that returns a picture object.
factor small real Required. Specifies the ratio between the height of the shape after you resize it
and the current or original height. For example, to make a rectangle 50 percent larger, specify
1.5 for this argument.
relative to original size Boolean Required. True to scale the shape relative to its original size.
False to scale it relative to its current size.
[scale enumeration] Optional. The part of the shape that retains its position when the shape is
scaled. Can be one of the following: scale from bottom right, scale from middle, or scale from
top left. The default value is scale from top left.
Example
This example scales all pictures on
myDocument
to 175 percent of their original height and width.
set myDocument to active document
repeat with s in (get pictures in myDocument)
scale height s factor 1.75 with relative to original size
scale width s factor 1.75 with relative to original size
end repeat
Command: scale width
Scales the width of the picture by a specified factor. You can indicate whether you want to scale the
shape relative to the original size or relative to the current size.
Syntax
scale width picture Required. An expression that returns a picture object.
factor small real Required. Specifies the ratio between the width of the shape after you resize it
and the current or original width. For example, to make a rectangle 50 percent larger, specify
1.5 for this argument.
relative to original size Boolean Required. True to scale the shape relative to its original size.
False to scale it relative to its current size.
[scale enumeration] Optional. The part of the shape that retains its position when the shape is
scaled. Can be one of the following: scale from bottom right, scale from middle, or scale from
top left. The default value is scale from top left.