C#WPF选择pdf的一部分并将其保存在imagebox上并保存为png(帮助) [英] C# WPF select part of pdf and save it on imagebox and save as png(help)
本文介绍了C#WPF选择pdf的一部分并将其保存在imagebox上并保存为png(帮助)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我是新来的。我需要帮助。我正在做一个项目。在C#/ WPF中,首先我要打开一个pdf文件。我可以在webbrowser中打开它,没问题。然后,我想裁剪这个。我想用鼠标选择pdf的一部分,并将选定的部分保存到图像框并保存为png。我怎样才能做到这一点?你可以帮帮我吗?
我尝试了什么:
我用webbrower打开了pdf。我想我们需要编写代码来截取窗口的截图。
Hello, I am new here. I need help. I am working on a project. In C#/WPF, first i want to open a pdf file. I can open it in webbrowser, no problem. Then, I want to crop this. I want to select a part of pdf with mouse, and save selected part to an imagebox and save as a png. how can i do that? Can you help me please?
What I have tried:
I opened pdf with webbrower. I think we need to write code to take a screenshot of the window.
推荐答案
试试 c#屏幕截图 - Google搜索 [ ^ ]。
这篇关于C#WPF选择pdf的一部分并将其保存在imagebox上并保存为png(帮助)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文