From a1be0fc5869f066a13d520b1e669650a6674408d Mon Sep 17 00:00:00 2001 From: Holt59 Date: Sun, 4 Mar 2018 21:24:30 +0100 Subject: [PATCH] Fix marker size. --- .../org/insa/graphics/drawing/overlays/MarkerAutoScaling.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/insa/graphics/drawing/overlays/MarkerAutoScaling.java b/src/main/org/insa/graphics/drawing/overlays/MarkerAutoScaling.java index 89e2f90..a250662 100644 --- a/src/main/org/insa/graphics/drawing/overlays/MarkerAutoScaling.java +++ b/src/main/org/insa/graphics/drawing/overlays/MarkerAutoScaling.java @@ -30,8 +30,8 @@ public class MarkerAutoScaling extends Marker { @Override public synchronized void draw(BoundingBox boundingBox, byte zoomLevel, Canvas canvas, Point topLeftPoint) { - int width = (int) PaintUtils.getStrokeWidth(12, zoomLevel), - height = (int) PaintUtils.getStrokeWidth(24, zoomLevel); + int width = (int) PaintUtils.getStrokeWidth(8, zoomLevel), + height = (int) PaintUtils.getStrokeWidth(16, zoomLevel); BufferedImage bfd = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR); Graphics2D g = bfd.createGraphics(); g.drawImage(this.originalImage.getScaledInstance(bfd.getWidth(), bfd.getHeight(), Image.SCALE_SMOOTH), 0, 0,