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

Drawing lines of variable widths with GapiDraw


Drawing lines of variable widths with GapiDraw

Postby elevenseventeen » Jul 7, 2006 @ 4:36pm

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
elevenseventeen
pm Member
 
Posts: 13
Joined: Jul 7, 2006 @ 4:29pm


Postby elevenseventeen » Jul 12, 2006 @ 4:00pm

elevenseventeen
pm Member
 
Posts: 13
Joined: Jul 7, 2006 @ 4:29pm


Postby elevenseventeen » Jul 12, 2006 @ 9:11pm

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
elevenseventeen
pm Member
 
Posts: 13
Joined: Jul 7, 2006 @ 4:29pm


Postby norwy » Jul 15, 2006 @ 2:05pm

norwy
pm Member
 
Posts: 39
Joined: Aug 13, 2004 @ 4:10pm
Location: Paris


Postby elevenseventeen » Jul 16, 2006 @ 10:53pm

elevenseventeen
pm Member
 
Posts: 13
Joined: Jul 7, 2006 @ 4:29pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

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