rotateImage

rotateImage ( string orignalImage , float angle , string _destinationImage , int _xRotationPoint , int _yRotationPoint ) : void

Rotate an image.
Note: do not rotate image if angle = 0, to save resources.

See also

straightenImage

Parameters

orignalImage

Original image path to rotate

angle

Angle of rotation in degres.

_destinationImage (optional)

Path where the rotated image should be saved. Leave blank to replace the original image with the rotated image.

_xRotationPoint (optional)

X coordinate of the center of rotation in pixel. If nothing, the center of the image is used.

_yRotationPoint (optional)

Y coordinate of the center of rotation in pixel. If nothing, the center of the image is used.