Rendering an image at runtime in WinRT

时间秒杀一切 提交于 2019-12-23 02:01:47

问题


I found that WriteableBitmap.Render() is not supported in WinRT. Is there any other API for drawing bitmap images in Metro? I need to render some xaml-primitives (Rectangles, Circles, Paths, etc.) to png-image.


回答1:


It is indeed not supported yet. Your best bets are to either use WriteableBitmapEx or Direct2D.



来源:https://stackoverflow.com/questions/11840835/rendering-an-image-at-runtime-in-winrt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!