Search code examples
c#.netwindows-phone-7windows-phone-8writeablebitmap

WriteableBitmapEx - merge two images in one


I want to merge two images into one. I read that I should use WriteableBitmapEx library and use blit method. Both of my images are Image type.

So, should I first convert Image type to WriteableBitmap ? Like this:

var im1 = image1.ToImage().ToBitmap(); 
var im2 = image2.ToImage().ToBitmap();

And how can I use method blit now ?


Solution

  • You have to use WriteableBitmapEx library to use the image merge functionality in your application WriteableBitmapEx Library has Blit Method.

    Here is an example for the same see the following link

    Hope it helps