How can I create a PNG file if I have two separated JPG files with the image and the alpha channel?
JPG Image + JPG Mask --> PNG with transparency
I've tried WPF solutions:
image.OpacityMask = new ImageBrush ( new BitmapImage ( uriMask ) );
and System.Drawing.
Image bmpMask = Image.FromFile ( maskFilePath );
gfxNewImage.SetClip ( Graphics.FromImage (bmpMask) );
but I have problems with both (black background, or full black)
Any idea or example?
ThankYou