Name

Shear( ) — shear an image

Synopsis

$image->Shear(geometry=>geometry,
                 x=>float,
                 y=>float,
                 crop=>{1, 0})

Shear( ) will transform an image by shearing it along the x or y axis. The x and y parameters specify the number of degrees (-179.9 to 179.9) that the image is to be sheared along that respective axis. The empty space created around the resulting parallelogram is filled with the color defined by the bordercolor attribute. If the crop parameter is 1, the image will be cropped to the image’s original size.

Get Programming Web Graphics with Perl and GNU Softwar now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.