在WinRT中在运行时渲染图像 [英] Rendering an image at runtime in WinRT

查看:60
本文介绍了在WinRT中在运行时渲染图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现WinRT不支持WriteableBitmap.Render().还有其他用于在Metro中绘制位图图像的API吗?我需要将一些xaml基元(矩形,圆,路径等)渲染为png图像.

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.

推荐答案

确实尚未支持.最好的选择是使用 WriteableBitmapEx 或Direct2D.

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

这篇关于在WinRT中在运行时渲染图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆