Convert image to RGB instead of ARGB

MYC-Refactor
Hammy 3 years ago
parent 791377538b
commit 58d98b7ae6

@ -132,7 +132,7 @@ class ClipboardUtils {
} }
static BufferedImage convertToBufferedImage(Image image) { static BufferedImage convertToBufferedImage(Image image) {
BufferedImage newImage = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_ARGB); BufferedImage newImage = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D graphics = newImage.createGraphics(); Graphics2D graphics = newImage.createGraphics();
graphics.drawImage(image, 0, 0, null); graphics.drawImage(image, 0, 0, null);

Loading…
Cancel
Save