This site is no longer active and is available for archival purposes only. Registration and login is disabled.

question about draw line with width


question about draw line with width

Postby letmein » Sep 21, 2006 @ 10:12am

i know the Bresenham and DDA way to draw one line, but, how to draw line with given width? for example, I can use Bresenham way to draw one 1 pixel width line, how can i draw the line with 3 or 10 pixels width?

I saw one sample which used filled circle instead of draw one pixel, I tried this way but the performance is poor, any other way?

please give me one sample, thanks.
letmein
pm Member
 
Posts: 8
Joined: Sep 21, 2006 @ 10:03am


Postby gamefreaks » Sep 26, 2006 @ 8:19pm

Does this help?

What if everything is an illusion and nothing exists? In that case, I definitely overpaid for my carpet. -Woody Allen
User avatar
gamefreaks
pm Insider
 
Posts: 466
Joined: Oct 20, 2001 @ 8:52pm
Location: Leicester, England


Postby joshbu [MSFT] » Oct 2, 2006 @ 6:51pm

Are you using a 3D API like D3DM? You can draw two triangles as a nice wide line substitute.
joshbu AT microsoft dot-you-know-where
Windows CE Software Design Engineer

“This posting is provided “AS IS” with no warranties, and confers no rights.”
joshbu [MSFT]
pm Member
 
Posts: 60
Joined: Apr 10, 2004 @ 12:28am
Location: Redmond, WA


Postby torus » Oct 8, 2006 @ 10:44pm

User avatar
torus
pm Member
 
Posts: 58
Joined: Oct 24, 2003 @ 10:11am
Location: Germany


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron