OpenWGA 7.10 - TMLScript reference
ImageScalerMethod :
scaleToSize(width, height [, keepRatio])
On object | ImageScaler |
Usage |
Scales the image to an absolute target size |
Description |
This is a straightforward scaling method that will make the image scale to the exact given sizes, at least if it is not instructed to keep the aspect ratio. If the aspect ratio should be kept - controllable on parameter "keepRatio" - the following behaviour is enforced:
|
Parameters |
width (Number): Desired width of the image in pixels height (Number): Desired height of the image in pixels keepRatio (Boolean, optional): Controls if the aspect ratio of the image is to be reserved. See description for behaviour when true. |
Allowed in script types |
|