Page 1 of 1

Drawing lines of variable widths with GapiDraw

PostPosted: Jul 7, 2006 @ 4:36pm
by elevenseventeen
Is there an algorithm available to draw lines of variable thickness using GapiDraw. I see that GapiDraw supports only the DrawLine() function and this only draws lines of single thickness. I am looking for something similiar to the GDI functionality that creates a pen of a certain thickness then draws a line using the pen.

This is an easy thing to do when I want to draw a line of zero or no slope (i just draw parallel lines using DrawLine() of course), however when i need to draw thicker lines of variable slope, it becomes quite complex. I assume this has been done before though.

Thank you for any advice!

George

PostPosted: Jul 12, 2006 @ 4:00pm
by elevenseventeen

PostPosted: Jul 12, 2006 @ 9:11pm
by elevenseventeen
Should I assume that there is no way to draw variable width lines using GapiDraw other than to develop up my own algorithm and use SetPixel()?

This is not a trivial task, yet this seems like it would be a common function. Any reason why this is not included in gapi already?

Thank you

PostPosted: Jul 15, 2006 @ 2:05pm
by norwy

PostPosted: Jul 16, 2006 @ 10:53pm
by elevenseventeen