Bugfix in "protected BufferedImage resize(int w, int h, boolean
smooth)", as suggested by Paul Alexandrow
This commit is contained in:
parent
1eb454d97f
commit
659238c00b
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ public class ImageWrapper {
|
||||||
* resizes the image using the Graphics2D approach
|
* resizes the image using the Graphics2D approach
|
||||||
*/
|
*/
|
||||||
protected BufferedImage resize(int w, int h, boolean smooth) {
|
protected BufferedImage resize(int w, int h, boolean smooth) {
|
||||||
BufferedImage buffered = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
|
BufferedImage buffered = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
|
||||||
Graphics2D g2d = buffered.createGraphics();
|
Graphics2D g2d = buffered.createGraphics();
|
||||||
|
|
||||||
g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
|
g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
|
||||||
|
|
Loading…
Add table
Reference in a new issue