在WPF应用程序中裁剪并调整图像大小 [英] Crop and resize an image in a WPF application

查看:96
本文介绍了在WPF应用程序中裁剪并调整图像大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用c#在WPF应用程序中裁剪和调整图像大小,我尝试使用谷歌获得的不同方法,并且在所有方法中,他们在两个文本框中输入图像的高度和宽度,并基于图像裁剪图像用户输入按钮点击。实际上我不想通过手动输入高度和宽度裁剪图像,我正在寻找一些方法可以通过鼠标事件来完成,这是更加用户友好。请给我一些解决方案或链接以参考。



提前致谢

I want to crop and resize an image in a WPF application using c#, i tried with different methods got from google and in all the methods they are entering the height and width of the image in two textbox and crop the image based on the user inputs in a button click.Actually I dont want to crop the image by entering the height and width manually,I am looking for some methods which can be done through the mouse events which is more user friendly.Please suggest me some solutions or links to refer.

Thanks in advance

推荐答案

例如,请参阅此CodeProject文章:< a href =http://www.codeproject.com/Articles/23158/A-Photoshop-like-Cropping-Adorner-for-WPF>用于WPF的类似Photoshop的裁剪装饰器 [ ^ ]。br />


-SA
See, for example, this CodeProject article: A Photoshop-like Cropping Adorner for WPF[^].

—SA


这篇关于在WPF应用程序中裁剪并调整图像大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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