=?ISO-8859-1?Q?G=FCnter_Bachelier?= on  wrote...
| 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.

| hexagon on black background
| $mask->Composite(image=3D>$extraction_mask, compose=3D>'CopyOpacity');
| $mask->Set(page=3D>'0x0+0+0');
| 
| I tried also
| $extraction_mask->Quantize(colors=3D>2, colorspace=3D>'Gray')
| without success.
| 
| Guenter
| 
| G=FCnter Bachelier schrieb:
| > Hello,
| >
| > I want to extract specific hexagonal regions with freestanding
| > structures from images (p3m1 tiles and patterns) like
| >
| > http://www.vi-anec.de/Trance-Art/IM-examples/p3m1_extraction/extraction_t=
| ype_1.jpg =
| 
| >
| > http://www.vi-anec.de/Trance-Art/IM-examples/p3m1_extraction/extraction_t=
| ype_2.jpg =
| 
| >
| >
| > I have tried to make this by drawing an extraction mask
| > (with matte=3D>'false') and use compose=3D>'CopyOpacity' but the image =
| 
| > remains unchanged after the operation.
| > See PerlMagick code in
| >
| > http://www.vi-anec.de/Trance-Art/IM-examples/p3m1_extraction/Test_p3m1_ex=
| traction.PLX =
| 
  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
    Just erotic.  Nothing kinky.  Its the difference between using
    a feather and using a chicken.          --- Terry Pratchet, "Eric"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to