Jump to content
  • Advertisement
Sign in to follow this  
rajesh_nest

Oval Drawing algorithm

This topic is 3779 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am writing a 2D Graphics library for a graphics processor. My current requirement is to write an API for drawing a oval. Here the parameter is the rectangle(with left,top,right,bottom) which is bounding the oval. As the center coordinates are not passed as parameter, I cannot use midpoint ellipse algorithm.Moreover when I tried to implement the midpoint algorithm,there were some accuracy issues in the rendering. Most of ellipse drawing algorithms uses center points as one of parameters for drawing. Then Somebody suggested to use the logic used in standard libraries (MFC,Java2D) for Drawing Oval.After several attempts,I could not get the logic. Any suggestions. RR

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!