using no-alpha buffered image

This commit is contained in:
Maja Joksovic 2020-07-01 12:47:38 +02:00
parent 17199a1a87
commit a53a819bd0
1 changed files with 1 additions and 1 deletions

View File

@ -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 {