[UWP]如何从文本制作图像 [英] [UWP]How To make Image From Text

查看:63
本文介绍了[UWP]如何从文本制作图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我想从文本中制作图像。我制作了一个画布,我添加了一个文本视图,并尝试保存它,但是,但我没有成功。任何人都可以告诉我如何使用文本制作图像并使用透明背景保存,因为
我必须在我的控件上覆盖该图像。    


解决方案


您好,


欢迎来到开发通用Windows应用程序
论坛!


请阅读粘贴帖子,特别是  发布指南:主题行
标签
   已知问题Windows 10 SDK和工具 ,
并且不要忘记在您的问题中添加标记。


您可以使用  RenderTargetBitmap 。 


I have a requirement where i want to make an image from text. I make a canvas in that i added a text view and tried to save it but, but i didn't succeed. Can anyone tell me how to make and Image from text and save it with transparent background, because i have to over lay that image on my control.    

解决方案

Hello,

Welcome to the Developing Universal Windows apps forum!

Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools , and don't forget add tag to your question.

You can use RenderTargetBitmap for UIElements. 


这篇关于[UWP]如何从文本制作图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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