++ed by:
IONCACHE BEROV JMATES FANY WKI

31 PAUSE user(s)
17 non-PAUSE user(s).

Tony Cook

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