have a look at following code: - https://zingl.github.io/bresenham.html - https://github.com/zingl/Bresenham integrate some of that algorithms, e.g. drawing thick or anti-aliased lines, and adapt for in-memory bitmaps
have a look at following code:
integrate some of that algorithms, e.g. drawing thick or anti-aliased lines, and adapt for in-memory bitmaps