I'm trying to crop an image, but the image doesn't get cropped properly
The code I'm using to get part of the picture I want is
Bitmap bmap = new Bitmap(pictureBox1.Image, pictureBox1.Width, pictureBox1.Height);
Bitmap cropImg = new Bitmap(cropArea.Width, cropArea.Height);
Graphics g = Graphics.FromImage(cropImg);
g.DrawImage(bmap, 0, 0, cropArea, GraphicsUnit.Pixel);
return cropImg;
the result I get is weird
Crop Reuslt :
The cropped picture gets blurred and zoomed in(?). What could be the cause the problem and what could I do to get rid of it?