ScaleV()

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.ScaleV(0.5,2.0)

In this example, myImage is initially set to 200% of its original size using the SetScale function. By calling myImage.ScaleV(0.5,2.0), the image will be 2.5 times taller than its original size. If the function is called again, the image will be 3 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 Vertical parameter a negative number. For example, to reduce the vertical scale of an object named myImage, which is 200% of its original size, to 150%, use the following:

myImage.ScaleV(-0.5,1.0)

 

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

Close