Cropping images sometimes a wrong area
问题 I'm using jQuery-cropbox to crop images on a web application. Everything is running smoothly most of the time, but from time to time, the generated image is wrong, as if the cropping was applied with wrong coordinates. As an example, consider this image : In cropbox, I zoom and drag until I get this : But when I click on the crop button, it gives me this: Here is the cropping code: private Bitmap CropImage(Image img, Rectangle rect) { Bitmap newImg = new Bitmap(rect.Width, rect.Height);