CImage:Scale
The Scale method scales the image by a factor relative to 1.0.
bResult = CImage:Scale( scale, bResize=false ) |
Scale is the multiplication factor and may be a number or string.
bResize controls whether the image dimension is adjusted for the scale factor.
On success, this method returns true.
On failure, this method returns false.
The optional bResize controls whether the image shape is changed to accommodate the rotation of a non-square image.
Suppose an image is displayed in a CImageView named V. The following script scales the image by 1.2 times without changing the number of image pixels (bResize=false ):
|
-- attach the current displayed image |
|
-- perform the operation |
|
-- update the display after the scale |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.