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

Drawing thick lines; arcs


Drawing thick lines; arcs

Postby rmg2768 » Apr 11, 2002 @ 4:54pm

Johan,
Thanks for providing GAPITools/Draw.
I saw in the GapiDraw FAQ that support for different line thicknesses was planned - will this be in the next release, and will GapiTools have similar support soon?

Also, any plans for arcs/circles? I know it isn't the goal of GAPItools/draw to offer a full 2D graphics API - just wondering.

Most line thickness routines I've seen depend on knowing the locations of individual pixels of a line that is being drawn, and replicating/tracing it. This is even more important for drawing thicker arcs. Without the source code, the best I could come up with was a "poor man's" line thickness routine that repeatedly calls Gapi Draw_line with endpoints that march across at 90 degrees to original line slope), but it isn't good for thicker lines (>6 pixels) and has a funny pattern for 45 degree lines. It doesn't use trig, but its still inefficient (uses a sqrt). The thickness also isn't very consistent across different slopes.

I suppose I could fall back on using the MFC DC and drawing classes...
rmg2768
 


Postby Johan » Apr 14, 2002 @ 11:57pm

User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


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