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...