Tony Cook > Imager-0.95 > inline_replace_color.pl

Download:
Imager-0.95.tar.gz

Annotate this POD

Website

CPAN RT

New  44
Open  17
View/Report Bugs
Source   Latest Release: Imager-0.99_01

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

syntax highlighting: