<!--
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURC-->
Return Types
{column:padding=0px|width=80px}{column}{column}{column}
Method Summery
{column:padding=0px|width=100%}{column}
Method Details
getImage
(file/byte_array/bean/applet/form_element)
Get a javascript image/resource object for the given file/bytearray/bean/applet/form_element.
Since
Replace with version info
Parameters
file/byte_array/bean/applet/form_element
Returns
[JSImage]
Also see
External links
Sample
var image = plugins.images.getImage(byteArray); var height = image.getHeight(); var contentType = image.getContentType(); var scaled_image = image.resize(30, 30); var snapshot_image = plugins.images.getImage(forms.companyReports.elements.employeesChartBean); var tempFile = plugins.file.createTempFile('bean_snapshot','.jpg') plugins.file.writeFile(tempFile, snapshot_image.getData()) application.setStatusText('Wrote file: '+tempFile)