indeed, the coordinates could become large fast when
zooming in to big polyons (by big i mean, big area)
The polygon definition is in worldcoordinates, those
are floats and i convert them to screen coordinates.
hmmm, yaiks this makes the problem even bigger
for me, looks like i am really have to do some polygon
clipping then, boy i hate that, i could a half working
algorithm, with the only thing going wrong is the
clipping at the edges of the clipping rectangle,
(eg:leftTop,rightBottom).. hmmm. maybe there is
a way of rejecting certain world2screen conversions
if they lay outside of the cliprect and then decreasing
them several orders of mangitude, so polygon won't
flip over the size. anyway thanx alot for the help.
Mohican
IRIS International
Quote
Chris Hill <Chris...@aol.com> wrote in message
news:36cc7c88.654004138@forums.borland.com...
Quote
>If you using Win9x, how large are the coordinates that are outside the
>bitmap? If they are greater than 2^15-1 or less than -2^15, you might
>be running into problems with the coordinate limitations of Win9x
>(this problem shouldn't be a present on NT which supports much larger
>coordinates, ~2^28). Even if your coordinates are just very large
>(+-3000), there may be problems with the Polygon function or the
>driver. It might not be a problem with the magnitude of individual
>coordinates, but the overall range of the points (which defines the
>size of the Polygon) Perhaps another reader might know about a
>specific problem with large coordinates in your scenario (Joe? <g>).
>If you are using a TBitmap.Canvas, Windows should not draw outside of
>the bitmap unless there is a Windows or video driver bug.
>Chris Hill
>Chris...@aol.com