How can i crop image using C#

橙三吉。 提交于 2019-12-03 16:31:29

If you know the area that contains the image data you would like to crop, you could use this article from MSDN:
http://msdn.microsoft.com/en-us/library/ms752345.aspx

If you need to find the relevant area before cropping, you need to investigate some image processing techniques. e.g. Corner Detection

In the assumption you are performing preprocessing for OCR, I would look into using the Aforge Framework if possible.

There is a specific set of functions in the Imaging classes for preforming crops and any other related manipulations(image rotation, hue adjustment, brightness/contrast adjustment, filter noise, etc) that you might need.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!