qfhahn / java-image-scaling

Automatically exported from code.google.com/p/java-image-scaling
Other
0 stars 0 forks source link

ResampleOp tends to round colors down #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The toByte(float f) method chops off the fractional part of the float,
rather than rounding, which leads to slight color discrepancies. Rescaling
a pure white image with lanczos or bicubic hi freq results in slightly off
white colors, due to (for instance) 254.999997 becoming 254 rather than 255.

Original issue reported on code.google.com by gmtetest@gmail.com on 10 Mar 2010 at 7:35

GoogleCodeExporter commented 8 years ago

Original comment by m%nobel-...@gtempaccount.com on 10 Mar 2010 at 7:40

GoogleCodeExporter commented 8 years ago
Fixed. 

Fix is available in the SVN and will be available in the next version of the 
library.

Original comment by m%nobel-...@gtempaccount.com on 20 Mar 2010 at 7:53