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 for Jakarta EE (Lucee 7+)
ImageTranslateDrawingAxis( image=any, x=number, y=number );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
x
number,
required
|
edit
x coordinate |
|
y
number,
required
|
edit
y coordinate |
Examples
editFunction 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 open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)