image.translateDrawingAxis()

Translates the origin of the image context to the point (x,y) in the current coordinate system. Modifies the image context so that its new origin corresponds to the point (x,y) in the image's original coordinate system.

image.translateDrawingAxis( x=number, y=number )

Returns: Image

Argument Description
x
number, required

x coordinate

y
number, required

y coordinate

Examples

imgObj = imageNew("",200,200,"rgb","149c82");
	imgObj.translateDrawingAxis(20,20);
	imgObj.drawRect(50,50,70,50,"yes");
	cfimage(action="writeToBrowser", source=imgObj);

See also