ImageRotateDrawingAxis

Rotates all subsequent drawing on an image at a specified point by a specified angle.

ImageRotateDrawingAxis( image [, angle [, x [, y ] ] ] )

Returns: void

Argument Description
image
any, required

The image on which this operation is performed.

Alias: name

angle
number, optional

The rotation angle in degrees.

x
number, optional

The x coordinate for the point of rotation. The default value is 0.

y
number, optional

The y coordinate for the point of rotation. The default value is 0.

Examples

imgObj = imageNew("",152,152,"rgb","red");
  imgObj.rotateDrawingAxis(135,71,71);
  imgObj.drawLines([0,38,76,114,152],[0,152,0,152,0],"no","no");
  cfimage(action="writeToBrowser", source=imgObj);

See also