Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: Blit images of different sizes?

$
0
0
Hi, first thanks for the WriteablebitmapEx library, it has help me write a cool app for Windows Phone and now I'm porting it to Windows RT.

I need to overlay an image on a background image, and am trying to use the blit functions. I've see the example where two images are overlayed, and both are the same size.

Can .blit merge two images of different sizes? In my app I'm adding small graphic elements to a large background image.

FYI, my app is using .Blit today to overlay two images of the same size, and it works perfectly:
            writeableBmp_Bkgrnd.Blit(
                new Rect(0, 0, writeableBmp_Bkgrnd.PixelWidth, writeableBmp_Bkgrnd.PixelHeight), wbAddOnTop,
                new Rect(0, 0, wbAddOnTop.PixelWidth, wbAddOnTop.PixelHeight),
                WriteableBitmapExtensions.BlendMode.Alpha);
Thanks!

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>