ImageShearDrawingAxis()
Shears the drawing canvas.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageShearDrawingAxis( image=any, shx=number, shy=number );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
shx
number,
required
|
edit
The multiplier by which coordinates are shifted in the positive x axis direction as a function of the y coordinate. |
|
shy
number,
required
|
edit
the multiplier by which coordinates are shifted in the positive y axis direction as a function of the x coordinate. |
Examples
edit imgObj = imageNew("",152,152,"rgb","149c82");
imgObj.shearDrawingAxis(0.5,0.5);
imgObj.drawRect(40,50,70,50,"yes");
cfimage(action="writeToBrowser", source=imgObj);
See also
- Image manipulation
- image.shearDrawingAxis()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)