Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / How can I draw arc in Dark GDK

Author
Message
LP forever
16
Years of Service
User Offline
Joined: 18th Jul 2008
Location:
Posted: 23rd May 2009 07:42
I want to draw Pie shape....

First, I tried to draw Pie by GDI... but it weired...

How can I draw Pie without GDI....

I need your help... I love you dudes.. Help me...

Don't pushing me away
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd May 2009 11:53
This is in basic but might get you going.

Here's the link.

http://forum.thegamecreators.com/?m=forum_view&t=145377&b=6

Dark Physics makes any hot drink go cold.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 23rd May 2009 18:27
Usually I'd do it a pixel at a time. But if you don't want to get that involved with the maths you can try drawing the circle then overlaying the unneeded part with a box of the background color in a strategic location.

Of course, this is crude and largely depends on what else is being drawn, where and when. Naturally you could draw it to a temporary bitmap, transfer it to an image then position it with a sprite.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-10-01 01:26:26
Your offset time is: 2024-10-01 01:26:26