Improve overlay management for BasicDrawing.

This commit is contained in:
Holt59
2018-02-25 12:44:15 +01:00
parent 481e30e80c
commit 9acdc998b3
3 changed files with 72 additions and 31 deletions

View File

@@ -3,9 +3,6 @@ package org.insa.graphics.drawing.utils;
import java.awt.Color;
import java.awt.image.BufferedImage;
import org.mapsforge.core.graphics.Bitmap;
import org.mapsforge.map.awt.graphics.AwtBitmap;
public class MarkerUtils {
/**
@@ -24,7 +21,7 @@ public class MarkerUtils {
* @param color
* @return
*/
public static Bitmap getMarkerForColor(Color color) {
public static BufferedImage getMarkerForColor(Color color) {
// create image
BufferedImage image = new BufferedImage(MARKER_MASK[0].length, MARKER_MASK.length, BufferedImage.TYPE_INT_ARGB);
@@ -36,7 +33,7 @@ public class MarkerUtils {
}
// Create Bitmap and return it.
return new AwtBitmap(image);
return image;
}
// Mask