OpenWGA 7.10 - TMLScript reference
WGAMethod :
createImageScaler(file)
createImageScaler(inputStream)
On object | WGA |
Usage |
Creates an ImageScaler object to perform scaling operations on an image file |
Description |
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. |
Parameters |
Variant 1 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. Variant 2 inputStream (Java input stream object of type java.io.InputStream) An input stream providing image data from any source. |
Return value |
A new ImageScaler object holding the image data of the file |
Allowed in script types |
|