Dear All
I need to crop photo image from scan image. I can not give fixed START X,START X and the Cropping Rectangle size of photo it is various potion and size. please help me. I have attached sample Scan file for your help
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Selva GanapathyPosted Mar 24, 2014, 7:35 AM
You can crop an the image from a scan image using the following codes
Bitmap img = new Bitmap(Image.FromFile("../../TESTIMGESCAN1.jpg"));
this.pictureBox1.Image = img.Clone(new Rectangle(394, 942, 358, 407), System.Drawing.Imaging.PixelFormat.DontCare);
Scan Image:
Crop image: