🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
1 messages
1 total messages Started by user Wed, 23 Mar 2005 04:08
drawArc
#65
Author: user
Date: Wed, 23 Mar 2005 04:08
23 lines
1723 bytes
Hi everyone,

I am having a very strange problem with the method, drawArc.
The problem is that it does not produce a symmetrical ( and )
when they are supposed. Here is code to illustrate the problem.

    int px1=40,px2=7,py=40,wid=40,hit=24,
        bgnAng1=155,arcAng1=50,bgnAng2=25,arcAng2=-50;
    g.drawArc(px1,py,wid,hit,bgnAng1,arcAng1);
    g.drawArc(px2,py,wid,hit,bgnAng2,arcAng2);

As you draw them, you will see that there is 1 or 2 pixels
difference in their bottom/top (ie y) pixel addresses.

I suspect that some trancation in the points calculation
for ( and ) internally (ie within drawArc) is causing, but
at the same time, I am surprised to see such difference when
considering that such calculation must be done in double
precision internally...

Any idea?

Thank you very much.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads