Switch from int to byte for color in markers.

This commit is contained in:
Holt59 2018-02-25 16:50:16 +01:00
parent 422a3267ca
commit b6eb6d97ea

View File

@ -23,7 +23,8 @@ public class MarkerUtils {
*/ */
public static BufferedImage getMarkerForColor(Color color) { public static BufferedImage getMarkerForColor(Color color) {
// create image // 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); Color[] map = getColorMapping(color);
for (int i = 0; i < image.getHeight(); ++i) { for (int i = 0; i < image.getHeight(); ++i) {