[EMAIL PROTECTED] on  wrote...
| A very old Saturday Night Live skit had a product that was both a
| dessert topping and a floor wax.  We had a similar problem with the
| composite mask.  It was treated as an image mask and as a clip mask which
| caused problems with certain compositing operations.  To fix we choose
| that the mask is forever more a clip mask (as was originally indended).
| To produce an image mask instead replace
| 
|   $corners->Composite(image=>$corners, mask=>$mask);
| 
| with
| 
|   $mask->Set(matte=>'false');
|   $corners->Composite(image=>$mask, compose=>'CopyOpacity');

Christy is correct the second is the correct way of masking.

I already removed the 'old' form example from IM Examples
when I dicovered it was broken, and a mis-use of the three image
alpha composition.

Getting back to your original problem...

I still think it is posible to do 'double masking' with three image or
masked, alpha composition, (probably using a inverted mask to limit the
effect of the overlay) but have not had time to sit down and work ot the
methodology.

Currently I only give some examples the two step 'double masking' method
in a couple of examples in the 'thumbnails' area of IM Examples.

See Rounded corners, Second Example
  http://www.cit.gu.edu.au/~anthony/graphics/imagick6/thumbnails/#rounded


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   Using encryption on the Internet is the equivalent of arranging an
   armored car to deliver credit-card information from someone living in a
   cardboard box to someone living on a park bench.       -- Gene Spafford
 -----------------------------------------------------------------------------
     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