i have one pdf file which i will save first as image and then crop that image and save as cropped part as new image. i am not getting any idea how to crop the portion which i want.
here is url how our actual image will look like this
please click on the link and see what value i should provide to extract left rectangle. can you give me any idea.
i got code to crop a portion of image. here is one sample for cropping programmatically.
Rectangle cropRect = new Rectangle(...);
Bitmap src = Image.FromFile(fileName) as Bitmap;
Bitmap target = new Bitmap(cropRect.Width, cropRect.Height);
using(Graphics g = Graphics.FromImage(target))
{
g.DrawImage(src, new Rectangle(0, 0, target.Width, target.Height),
cropRect,
GraphicsUnit.Pixel);
}
my concern is what value i should give here to crop the exact left rectangle from the image. Rectangle cropRect = new Rectangle(...);
can anyone give me any idea. thanks i got this code from this url How to crop an image using C#?
thanks