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


Back to ImageAdv Class Summary

Availability
Windows, Mac OSX, Linux

Usage
mdm.ImageAdv.rotate(angle:Number):Boolean

Parameters
angle - integer value to denote degree of rotation process (in degrees)

Returns
boolean indicating if operation succeeded

Description
This operation rotates bitmap using counter-clock-wise rotation (CCW) by degree value.

Notes
This operation does not change your original file. It operates on bitmap hosted in memory - so you have to flush changes to local file to persist them by saving JPEG/PNG files locally.

Example Code
if(image.isValid)
{
var rotated:Boolean = image.rotate(degreeValue);
if(rotated)
{
image.savePng(outptuPath);
};
};

mdm.ImageAdv 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