How do I draw an ellipse with arbitrary orientation pixel by pixel?

后端 未结 3 1403
失恋的感觉
失恋的感觉 2021-02-14 09:13

I have to draw an ellipse of arbitrary size and orientation pixel by pixel. It seems pretty easy to draw an ellipse whose major and minor axes align with the x and y axes, but

3条回答
  •  甜味超标
    2021-02-14 09:47

    Bresenham (famous for his line drawing algorithm) also has an algorithm for drawing an ellipse. You can try to google bresenham ellipse.

提交回复
热议问题