Christian,
> In GDI+, you can change SmoothingMode
:-) what the line /looks/ when its drawn is not the problem (it looks fine
to me). The problem is that when I try to draw a line between two points
that are close together no line is drawn.
Take the below area :
<bounds minlat="48.1400000" minlon="11.5400000" maxlat="48.1450000"
maxlon="11.5430000"/>
The delta X (lon) is 0.003, the delta Y (lat) is 0.005. There can be
50.000 nodes (vertices) in that area. Some of them /very/ close together
(some used to indicate outlines of building, houses and even just garden
sheds).
As I'm drawing the result onto a 2000x2000 image the whole has to be
upscaled quite a bit - about 2,000 / 0.005 -> 400,000 times.
The precision of a 32-bit float is just shy of 7 digits. Lets say that the
precision is about 25 times larger (10mil / 0.4 mil) than the scaling value.
That means that all coordinates are "rounded" to a grid of 80 pixels (2000 /
25). And that simply won't do I'm afraid. :-|
> Otherwise, the best APIs to draw on Windows is Direct2D
Grumble , grumble ... I see I forgot something rather important : I'm
trying to get it to work on XPsp3 (yeah old, I know :-) ), for which
Direct2D is not available. DirectDraw is is the best it offers.
I'm going to take a peek if DirectX9 in ortho (overlay) mode can do the
trick ...
Regards,
Rudy Wieser