Image.setJpgSize() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to Image Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.Image.setJpgSize(inputFilePath:String, width:Number, height:Number, outputFilePath:String, antialiasingRation:Number):Void

Parameters
inputFilePath:String - Location of JPG file

width:Number - New image width in pixels

height:Number - New image height in pixels

outputFilePath:String - Location of BMP file to be created

antialiasingRatio:Number - Ratio of antialiasing to be applied

Returns
Nothing

Description
Resizes the JPG image and saves the output file to a BMP.

Notes
The antialiasing variables can be either:

"1" for no antialiasing
"2" for medium
"3" for maximum antialiasing

Example Code
mdm.Image.setJpgSize("c:\\myImage.jpg", 200, 300, "c:\\myNewImage.bmp", 2);

mdm.Image Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page