Hossein Moradinia
Hossein Moradinia

Reputation: 6244

Simple component to crop a picture with rectangle box in c#.net windows application

I want a simple component to crop a picture with Rectangle box in c#.net windows application.what component can i use?(free or purchase)

Upvotes: 0

Views: 1168

Answers (2)

Pierre-Olivier Goulet
Pierre-Olivier Goulet

Reputation: 988

I used ClearImage for image manipulation at a previous job. I found it very easy to use, with good performance and it would serve your purpose perfectly.

There is also AForge, a open source image manipulation library. A little more powerfull, with a lot of features, but also a little more complicated.

Or you could design your own using the PictureBox and the Bitmap class. A lot of work, and probably not very performant if you don't know what you're doing...

Upvotes: 2

Jonathan Wood
Jonathan Wood

Reputation: 67175

Here's some code I wrote to resize an image. The code will also trim the image if needed.

It provides an example of cropping and could easily be modified to be a more general "cropper" class.

Upvotes: 2

Related Questions