Quantcast
Channel: How do I draw an ellipse with arbitrary orientation pixel by pixel? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Graham Toal for How do I draw an ellipse with arbitrary orientation...

Use the Bresenham method of drawing axis-aligned ellipses, but apply a shear to the drawn ellipse. You will also need to modify the lengths of the axes. A sheared ellipse is also an ellipse. This...

View Article



Answer by Martin Liversage for How do I draw an ellipse with arbitrary...

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

View Article

Answer by David Titarenco for How do I draw an ellipse with arbitrary...

Use:x = X cos(a) - Y sin(a)y = Y cos(a) + X sin(a)Where a is the angle of anticlockwise rotation, (x, y) are the new coordinates, and (X, Y) are the old.You should use floats to preserve precision....

View Article

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

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 rotating the ellipse by...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images