imageShearDrawingAxis

Shears the drawing canvas.

imageShearDrawingAxis(name, shrx, shry) → returns void

Member Function Syntax

someImage.shearDrawingAxis(shrx, shry)

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

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);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub