imageShearDrawingAxis

Shears the drawing canvas.

imageShearDrawingAxis(name, shrx, shry) → returns void

Member Function Syntax

someImage.shearDrawingAxis(shrx, shry)

imageShearDrawingAxis Argument Reference

name String
Required

The image on which this operation is performed.

shrx Numeric
Required

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

shry Numeric
Required

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