Scale()

For an Image object named myImage use the following syntax:

myImage.SetScale(2,2,1.0)
// sets the object size to 200% of its original size
myImage.Scale(0.5, 1,2.0)

Note:

In this example, myImage is initially set to 200% of its original size using the SetScale function. By calling myImage.Scale(0.5,1,2.0), the image will be 2.5 times wider and 3 times taller than its original size. If the function is called again, the image will be 3 times wider and 4 times taller because the effect of this function is cumulative, in other words, the scale factor is added to the current scale factor for the specified object.

If you want to reduce the scale factor by a particular amount then make the Horizontal or Vertical parameters a negative number. For example, to reduce the scale of an object named myImage, which is 200% of its original size, to 150%, use the following:

myImage.Scale(-0.5,-0.5,1.0)

 

see also:ScaleH, ScaleV, alternatively SetScale, SetScaleH, SetScaleV