OpenWGA 7.9 - TMLScript referenceWGA
Creates an ImageScaler object to perform scaling operations on an image file
ImageScaler objects are capable of scaling images to custom sizes. This method needs the image to be available as a file in the servers file system.
For backward compatibility there still is a method "createImageScaler()" available on TMLContext whose use is discouraged since OpenWGA 5.3.
file (Java file object of type java.io.File)
File whose data is loaded to the scaler object. You may use files uploaded to TMLForm objects by using tmlform.getFile() to get a filesystem representation of them.
inputStream (Java input stream object of type java.io.InputStream)
An input stream providing image data from any source.
A new ImageScaler object holding the image data of the file
|Allowed in script types||