c# - Overlay two bitmap images in WPF -


I have to overlay two images (say, JPEG and PNG with transparency).

Input: - JPEG image - PNG image

Output: - JPEG image is applied with PNG.

What is the best way to do this?

Thanks in advance for answers and hints!

Cheers

You can use DrawingGroup like this:

  var group = new DrawingGroup (); group. hair. Add (new image (new bitmap image (new urie (@ "... ... some .jpg", uricind. Assetolyt), new rect (0, 0, ??, ??))); Group.Children.Add (new image image (new bitmap image (new urie (@ "... \ Some.png", uricind. Esoluit)), new rect (0, 0,? ,,?))); MyImage.Source = New Drawing Image (Group);  

Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -