Shamim1977 / iplab

Automatically exported from code.google.com/p/iplab
Other
0 stars 0 forks source link

Cropped images are saved at screen resolution instead of image resolution #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a 600 DPI image file with Image Processing Lab
2. Crop a portion of the image
3. Save the cropped image to disk

What is the expected output? What do you see instead?
The expected output is a a 600 DPI cropped image saved to disk.  A 96 DPI 
cropped image is saved to disk instead.

What version of the product are you using? On what operating system?
IPL 2.4.0 on WinXP (SP2)

Please provide any additional information below.

Original issue reported on code.google.com by hi_m...@hotmail.com on 8 May 2008 at 5:37

GoogleCodeExporter commented 8 years ago
Since all of the high resolution pixels were present in the cropped image, I 
was 
able to work around this problem by just setting the image resolution back to 
600 
DPI:

bmpImage.SetResolution(600.0f, 600.0f);

Normally, this wouldn't have been a problem for most people, but another piece 
of 
software I was using would throw an exception if the image resolution was not 
set 
correctly.

Original comment by hi_m...@hotmail.com on 14 Dec 2008 at 2:02

GoogleCodeExporter commented 8 years ago
Since IPLab uses one of the newer releases of AForge.NET framework, the issue 
should be more or less resolved. Most filters of the AForge.NET framework which 
accept Bitmap as argument should provide result Bitmap with same DPI.

Original comment by andrew.k...@gmail.com on 26 Mar 2012 at 8:17

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 26 Mar 2012 at 8:48