Windows 8 Metro App - Render PNGs

前端 未结 2 1722
眼角桃花
眼角桃花 2021-01-20 21:52

I am needing to render some custom PNGs in a Windows 8 app.

Basically I need to create a custom live tile by putting some drawings made in my app on top of an image

2条回答
  •  深忆病人
    2021-01-20 22:46

    WinRT XAML Toolkit has some extension methods for WriteableBitmap that you could use too. You could probably use WriteableBitmapLoadExtensions for loading and WriteableBitmapSaveExtensions for saving. It has a fairly limited blitting capability though since that is exposed by WriteableBitmapEx already and simple to write anyway. WriteableBitmapBlitBlockExtensions is only a method to blit a full width block of pixels from bitmaps of same width.

    Edit* RenderTargetBitmap is now available in Windows 8.1. It doesn't support some elements though (I think it doesn't render camera previews, media elements and perhaps WebViews).

提交回复
热议问题