Hello Anthony, > But is that the way to turn off alpha channel in Magick++?
no I am using still PerlMagick, http://www.vi-anec.de/Trance-Art/IM-examples/p3m1_extraction/Test_p3m1_extraction.PLX and Set(matte=>'false') is working with gray scale images that were read but here a mask is generated within IM. I suspect that Set(size=>"$w x $h") is generating a RGB image by default so I also tried Quantize(colors=>2, colorspace=>'Gray') but the image after compose remains also unchanged. I also tried an other kind of compose ('in') with transparent background and a white hexagon but it did not work either. I really don't what went wrong here; I used 'CopyOpacity' and 'in' many times the same way. Guenter | Hello, | | why remains $mask after compose=3D>'CopyOpacity' unchanged? | | $extraction_mask->Set(matte=3D>'false'); # $extraction_mask =3D white = | But is that the way to turn off alpha channel in Magick++? If this is not turning off the alpha channel, then CopyOpacity will not do what you expect. Please try this on a image with transparency, and see if the result still have transparency or not. I am just not familiar with Magick++, only with Command line and the core Magick Library. _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
