Switch from int to byte for color in markers.
This commit is contained in:
父節點
422a3267ca
當前提交
b6eb6d97ea
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
|
@ -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) {
|
||||
|
|
載入中…
Reference in a new issue