image.rotateDrawingAxis()

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

image.rotateDrawingAxis( angle=number, x=number, y=number )

Returns: Image

Argument Description
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","##bf4f36");
	imgObj.rotateDrawingAxis(75,71,71);
	imgObj.drawLines([0,38,76,114,152],[0,152,0,152,0],"no","no");
	cfimage(action="writeToBrowser", source=imgObj);

See also