简体   繁体   English

如何在Windows Store应用开发中的图像上写文字? C#,WPF

[英]How to write text on image in windows store app development? C#,wpf

I have search so much on this topic and I couldn't find a way to draw a text on image or even a create an image and then draw a text in windows store app. 我在这个主题上进行了太多搜索,找不到在图像上绘制文本甚至创建图像然后在Windows Store应用程序中绘制文本的方法。

Is there way to load image from ms-appx:///Assets/image.png and write a text on the center of the image that passes somehow and save it into ms-appdata:///roaming/image11.png ? 有没有办法从ms-appx:///Assets/image.png加载图像,并在图像的中心写入以某种方式传递的文本,然后将其保存到ms-appdata:///roaming/image11.png

Use RenderTargetBitmap - this article has a pretty good explanation for Windows Store apps: http://social.technet.microsoft.com/wiki/contents/articles/20648.using-the-rendertargetbitmap-in-windows-store-apps-with-xaml-and-c.aspx . 使用RenderTargetBitmap本文对Windows Store应用程序有一个很好的解释: http : //social.technet.microsoft.com/wiki/contents/articles/20648.using-the-rendertargetbitmap-in-windows-store-apps-with -xaml-and-c.aspx

If you meant WPF, it's similar: http://wpftutorial.net/BitmapFromVisual.html (just create a image control with textbox for the Visual ) 如果您指的是WPF,则类似于: http : //wpftutorial.net/BitmapFromVisual.html (只需使用Visual文本框创建图像控件)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在C#Windows Store App Development中从一组图像生成随机图像 - Generate a random image from a group of images in C# Windows Store App Development 如何在Windows 8应用商店应用(C#/ XAML)中正确添加图像 - How to properly add image in Windows 8 store app (C#/XAML) 如何在Windows Store App(C#)中获取一个像素的图像 - How to get one pixel of Image in Windows Store App (C#) C#wpf scrollviewer不像windows store app那样工作 - C# wpf scrollviewer not working like windows store app 如何在C#中安装Windows Image Acquisition以开发图像捕获 - how to install Windows Image Acquisition for development of image capture, in C# 如何在C#中为Windows Store应用程序编写嵌套的Json Web服务 - How to write nested Json web services in c# for windows store app 如何在Windows 8.1应用商店中的C#中的文本块中换行 - how to new line text in a text block from c# in windows 8.1 store app 使用C#在Windows Store App中裁剪并保存图像(UIElement) - Crop and save image (UIElement) in Windows Store App using c# with 在平板电脑上的ScrollViewer中滚动图像(Windows应用商店应用,C#) - Scrolling image inside ScrollViewer on tablet (Windows Store app, C#) 在Windows Store应用程序中使用C#将FadeOut添加到图像中 - Adding a fadeOut to an image in with C# in a windows store app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM