[UWP]在UWP RichEditBox控件中调整图像大小 [英] [UWP]Resize Image in UWP RichEditBox Control

查看:118
本文介绍了[UWP]在UWP RichEditBox控件中调整图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在使用UWP RichEditBox Control开发编辑器应用程序。用户打开.rtf文件并编辑并保存。


我可以使用"Rich Text Format"重新调整插入的图像的大小。应用。我正在尝试在我的应用程序中做同样的事情。请告诉我是否可以使用RichEditBox控件调整图像大小。


谢谢,





Pallam Madhukar Windows Phone开发人员

解决方案

嗨Pallam Madhukar,


Welcome
到开发通用Windows应用程序论坛!
 请使用   标记  当
发布到此论坛时,谢谢!


如果你想调整图片大小然后将其插入< a href ="https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.richeditbox">
RichEditBox ,可以通过更改
BitmapImage
像素  插入图片 到

RichEditBox


但是如果你想调整.rtf文件中的图像大小,你应该首先找到图像,然后调整它的大小,这里是

线程
,它不是uwp,但我认为它应该有类似的理论,你可以尝试一下。因此,如果您从文件中获取图像,则可以调整其大小。 


祝您好运,


Breeze


Hi All,

I am developing Editor application using UWP RichEditBox Control. User opens .rtf file and edit it and save.

I am able to resize inserted image in using "Rich Text Format" application. Same thing I am trying do in my application. Please let me know whether it is possible to resize the image using RichEditBox control.

Thanks,


Pallam Madhukar Windows Phone Developer

解决方案

Hi Pallam Madhukar,

Welcome to the Developing Universal Windows apps forum! Please utilize tagging when posting to this forum, thanks!

If you want to resize image and then insert it to the RichEditBox, it can be implemented by changing the BitmapImage pixel and Insert Image to the RichEditBox.

But if you want to resize the image in the .rtf file, you should find the image at first then resize it, here is a thread about extracting embedded Image Object in RTF, it is not uwp, but i think it should have similar theory, You can have a try with it. So, if you get the image from the file, then you can resize it. 

Best regards,

Breeze


这篇关于[UWP]在UWP RichEditBox控件中调整图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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