Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Source code for ellipse

Status
Not open for further replies.

xlav

Technical User
Oct 23, 2003
223
JM
Trying to find a soure code in C to draw an ellipse.

-X
 
leagn windows GDI

Ion Filipski
1c.bmp
 
Thanks for helping. Can't figure out what you're trying to say about GDI. I've got a code but it can only draw the ellipse horizontally ie. it dosen't use start and end angles. Any help appreciated. Using Visual C++ 6.0 and OPENGL.

X
 
In MFC we use:

CClientDC dc; [direct context]
dc.Ellipse(int, int, int, int) // integers of surrounding rectangle.

-Bones
 
Never used MFC. Cannot generate ellipse must write soure code. Used C code from 'Computer Graphics by Hearne & Baker, 2nd Edit.,chap 3'. Can't figure out how to modify code to use start and end angles.

-X
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top