OpenWGA 7.7 - TMLScript reference
ImageScalerProperty :
aspectRatio
On object | ImageScaler |
Usage |
Returns the aspect ratio of the image |
Description |
The aspect ratio describes the relation of width and height of the image. It is expressed as a fraction value which is calculated by: width pixel / height pixel If the ratio is lower than 1 then the height is bigger than the width resulting in a so called "portrait" format. If it is bigger than 1 then the width is bigger than the height an we have a so called "landscape" format. |
Writable | False |
Return value |
The aspect ratio as fraction value (Number) |
Allowed in script types |
|