开发者

WPF Crop and resize an image without losing original image

开发者 https://www.devze.com 2023-02-01 19:43 出处:网络
I am trying to create a WPF control which crops and re-sizes an image via adorners without losing the original image ie once cropped it should be possible to get back the original by reversing the ste

I am trying to create a WPF control which crops and re-sizes an image via adorners without losing the original image ie once cropped it should be possible to get back the original by reversing the steps and the cropped image should also be resizeable.

Can't seem to come up with a viabl开发者_运维技巧e solution.

Any bright ideas? Just need a general approach.


Check if this helps

http://www.codeproject.com/KB/WPF/CropAdorner.aspx

http://drwpf.com/blog/2007/09/08/image-manipulation-using-wpf-imaging-classes/

http://blogs.msdn.com/b/delay/archive/2007/11/11/bigger-isn-t-always-better-how-to-resize-images-without-reloading-them-with-wpf.aspx


check out

Interactive WPF image cropper control

you can download the source. should thank teamdistinction.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号