Name

map( ) — move and resize a polygon

Synopsis

GD::Polygon::map(srcLeft, srcTop, srcRight, srcBottom,                   destLeft, destTop, destRight, destBottom)

This method will scale an existing polygon to fit a region, changing the values of all of the vertices within the polygon. The first four parameters define the bounding box of the source area and the last four define the bounding box of the destination area.

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.