WriteableBitmap Memory Leak?

前端 未结 5 1164
花落未央
花落未央 2020-12-30 01:48

i am using the code below to create a live tile, based on an UI element. It renders the uiElement on a WriteableBitmap, saves the bitmap + returns

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 02:15

    You can limit the size of writable bitmap image width X height to smaller size as you when increase its size it takes more memory so you can limit its initial size at first then save as jpeg with original tile size

提交回复
热议问题