imageShearDrawingAxis

Shears the drawing canvas.

imageShearDrawingAxis(name, shrx, shry) → returns void

Member Function Syntax

someImage.shearDrawingAxis(shrx, shry)

Argument Reference for the imageShearDrawingAxis function

name

Required: Yes
The image on which this operation is performed.

shrx

Required: Yes
The multiplier by which coordinates are shifted in the positive x axis direction as a function of the y coordinate.e

shry

Required: Yes
the multiplier by which coordinates are shifted in the positive y axis direction as a function of the x coordinate.

Examples sample code invoking the imageShearDrawingAxis function


Using shearDrawingAxis member function

CF 11+ Draw a sheared rectangle

imgObj = imageNew("",152,152,"rgb","149c82");
imgObj.shearDrawingAxis(0.5,0.5);
imgObj.drawRect(40,50,70,50,"yes");
cfimage(action="writeToBrowser", source=imgObj);

Fork me on GitHub