Search code examples
javascaledrawshapesgraphics2d

Java - drawing a scaled up shape with line thickness of 1


When you use Graphics2D.scale(); and draw a shape, the outline thickness is also scaled.

Is there a way to draw it without the line thickness being scaled? Perhaps there's another efficient way to scale it other than using the above function?


Solution

  • This question is similar. It looks like you have to mess around with a Stroke object to set the right line width.