(none) imager-devel
/ help / lists / applications / search /
 

Re: Replacing one colour with a different (transparent) colour (PNG)

From: Aaron Dalton (
11294@xyz.molar.is)
Date: Wed 04 Feb 2004 - 05:05:57 GMT

  • Next message: Tony Cook: "Re: Replacing one colour with a different (transparent) colour (PNG)"

    On February 3, 2004 08:33 pm, Tony Cook wrote:
    > You might want to look at using transform2() to do the conversion:
    >
    > my $out = Imager::transform2(
    > {
    > channels=>4,
    > rpnexpr => 'x y getp1 !p @p red 255 eq @p green 255 eq and @p
    > blue 255 eq' .' and 0 0 0 0 rgba @p red @p green @p blue 255 rgba if'
    > }, $input_image);
    >
    > Tony

    Thank you, Tony! I'll play with it. Where can I find documentation
    transform2? I coudn't find anything in the PODs at search.cpan.org.

    Cheers!

    -- 
    Aaron Dalton
    http://aaron.daltons.ca
    PGPKeyID: 0x29844D7D
    



  •