Page 1 of 1

question about draw line with width

PostPosted: Sep 21, 2006 @ 10:12am
by letmein
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.

PostPosted: Sep 26, 2006 @ 8:19pm
by gamefreaks
Does this help?


PostPosted: Oct 2, 2006 @ 6:51pm
by joshbu [MSFT]
Are you using a 3D API like D3DM? You can draw two triangles as a nice wide line substitute.

PostPosted: Oct 8, 2006 @ 10:44pm
by torus