The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

inline_replace_color.pl - replace one color with another in an image, using Inline

SYNOPSIS

  perl inline_replace_color.pl fromcolor tocolor inimage outimage

  perl inline_replace_color.pl white 808080 foo.jpg bar.png

DESCRIPTION

This is a simple demonstration of using Imager with Inline::C to replace one color in an image with another.

Most of the work is done in the inline_replace_color() function.

inline_replace_color

Called:

  inline_replace_color($in_image, $from_color, $to_color);

Returns a new image object with colors replaced.

REVISION

$Revision: 816 $

AUTHOR

Tony Cook <tony@develop-help.com>

SEE ALSO

Imager, Imager::Inline, Imager::API, Imager::Color, Imager::Files