using no-alpha buffered image

This commit is contained in:
Maja Joksovic
2020-07-01 12:47:38 +02:00
parent 8eaa685794
commit 1c3c15366b

View File

@@ -18,7 +18,7 @@ public class MarvinExample {
scale.setAttribute("newWidth", targetWidth);
scale.setAttribute("newHeight", targetHeight);
scale.process(image.clone(), image, null, null, false);
return image.getBufferedImage();
return image.getBufferedImageNoAlpha();
}
public static void main(String args[]) throws IOException {