From b6eb6d97ea32cbdc10b0266c13a7b5e98ca09dab Mon Sep 17 00:00:00 2001 From: Holt59 Date: Sun, 25 Feb 2018 16:50:16 +0100 Subject: [PATCH] Switch from int to byte for color in markers. --- src/main/org/insa/graphics/drawing/utils/MarkerUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/org/insa/graphics/drawing/utils/MarkerUtils.java b/src/main/org/insa/graphics/drawing/utils/MarkerUtils.java index e9d5da9..4571961 100644 --- a/src/main/org/insa/graphics/drawing/utils/MarkerUtils.java +++ b/src/main/org/insa/graphics/drawing/utils/MarkerUtils.java @@ -23,7 +23,8 @@ public class MarkerUtils { */ public static BufferedImage getMarkerForColor(Color color) { // create image - BufferedImage image = new BufferedImage(MARKER_MASK[0].length, MARKER_MASK.length, BufferedImage.TYPE_INT_ARGB); + BufferedImage image = new BufferedImage(MARKER_MASK[0].length, MARKER_MASK.length, + BufferedImage.TYPE_4BYTE_ABGR); Color[] map = getColorMapping(color); for (int i = 0; i < image.getHeight(); ++i) {