Name

Mogrify( ) — alternative method calling scheme

Synopsis

$image->Mogrify(method_name,                              parameter_list)

The Mogrify( ) method is a convenience function that allows you to call any image manipulation method by giving it a method name as a string and a list of parameters to pass to the method. The following calls have the same result:

$image->Implode(factor=>50);
$image->Mogrify('Implode', factor=>50);

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.