How to Composite with mask.gif ? #782
-
Hello,
Could you let me know how to do it in MagicK.NET? Thank you! ---------------more infomation-----------------
But, Mask doesn't work in following snippet,
Seems Mask work in (0, 0) position only, any advice?? thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think you will need to use the following code. The composite command does some magic when there are 3 images involved. using (var clone = tile_water.Clone())
{
tile_water.Composite(tile_aqua, CompositeOperator.Undefined);
tile_water.Composite(moon_mask, CompositeOperator.CopyAlpha);
clone.Composite(tile_water, CompositeOperator.Over);
clone.Write("mask_over.jpg");
} |
Beta Was this translation helpful? Give feedback.
I think you will need to use the following code. The composite command does some magic when there are 3 images involved.