如何绘制字符串中的WinRT位图图像 [英] How to draw string to a bitmap image in WinRT
本文介绍了如何绘制字符串中的WinRT位图图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在的WinRT
画一个字符串的图像?在那可以用做的WinForms 束带()
方法 System.Drawing中
命名空间内,但我找不到它的相当于WinRT的API。
How do you draw a string to an image in winRT
? In WinForms that could be done using drawstring()
method inside the system.drawing
namespace but i couldn't find its equivalent in WinRT API.
推荐答案
Direct2D的是GDI在WinRT中的替代品。所以你将不得不使用C ++ / CX与DirectX绘制文字
Direct2D is a replacement for GDI in WinRT. So you'll have to use C++/CX with DirectX for drawing text.
我没有任何例子你,但可能的此链接(和链接在内)可以帮助你你的方式。
I don't have any examples for you, but maybe this link (and the links included) can help you on your way.
这篇关于如何绘制字符串中的WinRT位图图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文