CompuServe Thread

#AreaEllipse()…

2 messages in this thread
#63705From: Ed SilvaApr 15, 1987 3:18 AM
Hello… I am playing with this graphics function using 1.2,and for some reasons when i execute this routine it takes about 5-15 seconds to execute! where as a RecFill() is executed on the fly..! i know that an ellipse takes lots of time to calculate and draw (1-2 sec) but why does it take so long to fill? and what is funny is that if after a execute it call: AreaMove(0,0) AreaDraw(0,100) AreaDraw(100,100) AreaDraw(100,0) AreaEnd(myrastport) it waits for the ellipse to be finish! and the draws something else on the screen…i have properly initialized all my areas,raster and any necessary temporary areas required for the system to work for all of the areafilling. If you have the answer please tell me. Ed p.s. Is this a BUG that i am not aware,i am using 320×200 5 planes. C 3.03 and DOS 1.2 .
#63737From: Chris SaulitApr 15, 1987 11:40 AM
Something's definitely wrong if it's taking 5-15 seconds to fill an ellipse! It should not even take take more than ONE second. Here's one thing that you could check: AreaEllipse() doesn't actually do the drawing… it just adds the points of an ellipse to the area buffer (which stores a polygon's vertices). To actually have the ellipse drawn, you MUST follow the AreaEllipse() or AreaCircle() with a call to AreaEnd(). Hope this helps.