Name

Sample( ) — sample an image to given dimensions

Synopsis

$image->Scale(geometry=>geometry,
                 width=>integer,
                 height=>integer)

Sample( ) scales an image to the given dimensions with pixel sampling. Unlike other scaling methods, this method does not introduce any additional colors into the scaled image.

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.