Switch from int to byte for color in markers.

This commit is contained in:
Holt59 2018-02-25 16:50:16 +01:00
부모 422a3267ca
커밋 b6eb6d97ea

파일 보기

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