using no-alpha buffered image
This commit is contained in:
parent
17199a1a87
commit
a53a819bd0
|
@ -18,7 +18,7 @@ public class MarvinExample {
|
||||||
scale.setAttribute("newWidth", targetWidth);
|
scale.setAttribute("newWidth", targetWidth);
|
||||||
scale.setAttribute("newHeight", targetHeight);
|
scale.setAttribute("newHeight", targetHeight);
|
||||||
scale.process(image.clone(), image, null, null, false);
|
scale.process(image.clone(), image, null, null, false);
|
||||||
return image.getBufferedImage();
|
return image.getBufferedImageNoAlpha();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String args[]) throws IOException {
|
public static void main(String args[]) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue