Switch from int to byte for color in markers.
Этот коммит содержится в:
родитель
422a3267ca
коммит
b6eb6d97ea
1 изменённых файлов: 2 добавлений и 1 удалений
|
@ -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) {
|
||||||
|
|
Загрузка…
Сослаться в новой задаче