javl / image2cpp

GNU General Public License v3.0
529 stars 156 forks source link

Center alignment doesn't snap to nearest pixel #23

Closed javl closed 4 years ago

javl commented 5 years ago

When using a small image centered on a larger canvas, the image can become ugly, possible due to not using integers for its position leading to aliasing.

Error: A 50x50px image on 100x100 canvas image A work around is to change the canvas size, making it one pixel bigger or smaller: A 50x50px image on 100x101 canvas image

javl commented 4 years ago

Fixed in 7f10be0