Windows Phone:如何在可能的位图上绘制数字? [英] Windows Phone: How to draw a number on a wirteable bitmap?

查看:48
本文介绍了Windows Phone:如何在可能的位图上绘制数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可写的位图(160x160)和一个字符串中的数字。代码如下所示:



I have a writeable bitmap (160x160) and a number in string. Code look like this:

WriteableBitmap pic1 = selectedPhoto.Crop(0, 0, 160, 160);
String s = "1";





我想把字符串s画到pic1上。



我该怎么办?



你能告诉我解决问题的方法吗?



非常感谢!



输入:

1. Writebale位图

2.字符串



输出:查看此处 https: //lh3.googleusercontent.com/-2rX1vOBpbdw/US1zu88qOfI/AAAAAAAAAGs/hcsi2Jw3gDs/s512/p5.png

推荐答案

问题here [< a href =http://stackoverflow.com/questions/5666772/how-can-i-render-text-on-a-writeablebitmap-on-a-background-thread-in-win dows-phtarget =_ blanktitle =New Window> ^ ]并且一些答案似乎有你想要的东西。
The question here[^] and some of the answers seem to have what you''re looking for.


这篇关于Windows Phone:如何在可能的位图上绘制数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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