Remove dead image scaling library

This commit is contained in:
Daniel Bomar 2022-03-09 19:33:35 -06:00
parent 91e987dd69
commit e0008fdcb2
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 6 additions and 12 deletions

View file

@ -3,8 +3,6 @@ package mage.client.util;
import java.awt.*;
import java.awt.image.BufferedImage;
import com.mortennobel.imagescaling.ResampleOp;
/**
*
* @author user
@ -95,9 +93,12 @@ public final class TransformedImageCache {
}
private static BufferedImage resizeImage(BufferedImage original, int width, int height) {
ResampleOp resampleOp = new ResampleOp(width, height);
BufferedImage image = resampleOp.filter(original, null);
return image;
Image scaled = original.getScaledInstance(width, height, Image.SCALE_SMOOTH);
BufferedImage output = new BufferedImage(width, height, original.getType());
Graphics2D graphics = output.createGraphics();
graphics.drawImage(scaled, 0, 0, null);
graphics.dispose();
return output;
}
public static BufferedImage getResizedImage(BufferedImage image, int width, int height) {