[magick-users] Magick++ Image::transparent() problem
Serg Buslovsky
serg.buslovsky at gmail.com
Wed Apr 29 17:09:16 PDT 2009
Hi, All.
I'm using Magick++ API.
The task is to convert color to transparent on PNG image.
Code:
Magick::Image imtmp;
imtmp.read( "/tmp/somefile.png" );
imtmp.colorFuzz( 10000.0 );
imtmp.transparent( "#040204" ); // imtmp.transparent( "#5402b4" );
Problem:
it does convert all colors to transparent except the black(#040204) color.
When I pass "#040204" to transparent(), black color on the image transforms
to white, not to transparent.
Other colors work fine.
Any ideas?
More information about the Magick-users
mailing list