Closed GoogleCodeExporter closed 8 years ago
Good question ! The library does suport proportional scaling using the
DimensionConstrain.createRelativeDimension(float), but internally it just
rounds off to the nearest width and height (meaning it potentially distort the
image slightly).
Your suggestion could also work - however both solutions will remove some
information from the image (either by changing the aspect-ratio slightly or
removing information from the last line).
The usual problem people have is they want to arbitrary sized-image into a
fixed sized thumbnail - this situation is not really supported the the library
either. The workaround is to first scale the image, and afterwards "enlarge the
canvas" (by copying the rescaled image into a image with the correct
dimensions).
- Morten
Original comment by m%nobel-...@gtempaccount.com
on 28 Feb 2011 at 8:17
Original issue reported on code.google.com by
jedier...@gmail.com
on 28 Feb 2011 at 3:34