image.shear()
Shears an image either horizontally or vertically.
image.shear( shear=number, direction=string, interpolation=string )
Returns: Image
| Argument | Description |
|---|---|
|
shear
number,
required
|
edit
Shear value. Coordinates can be integers or real numbers. |
|
direction
string,
optional
|
edit
Shear direction:
|
|
interpolation
string,
optional
|
edit
Type of interpolation:
|
Examples
edit img = imageNew("",100,80,"rgb","B33771");
img.Shear(4,"vertical");
cfimage(action="writeToBrowser", source=img);
img.Shear(4);
cfimage(action="writeToBrowser", source=img);