SonarSonic / DrawingBotV3

DrawingBotV3 is a software for converting images into vector art
https://docs.drawingbotv3.com
GNU General Public License v3.0
331 stars 43 forks source link

Add half pixel to scaled offset #33

Closed HanzPetrov closed 2 years ago

HanzPetrov commented 2 years ago

Hi Ollie, I believe that this is an appropriate tweak to correct the half-pixel offset between canvas and plotted geometry. The issue stems from the Java Graphics2D pixel numbering system, as described here: https://math.hws.edu/graphicsbook/c2/s5.html Let me know you have any concerns with this. Hanz

Before: before After: after