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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Selva GanapathyRank #560 · 4.3K reputationPosted Mar 24, 2014, 3:35 AM EDT
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: