ImageTranslateDrawingAxis()
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.
Requires Extension: Image extension
ImageTranslateDrawingAxis( image=any, x=number, y=number );
Returns: void
Argument | Description |
---|---|
image
any,
required
|
The image on which this operation is performed. Alias: name |
x
number,
required
|
x coordinate |
y
number,
required
|
y coordinate |
Examples
Function Example
imgObj = imageNew("",200,200,"rgb","149c82");
imagetranslateDrawingAxis(imgObj,40,40);
imgObj.drawRect(50,50,70,50,"yes");
cfimage(action="writeToBrowser", source=imgObj);
See also
- Image manipulation
- image.translateDrawingAxis()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)