I have difficulty drawing a polygon to the right scale.
I use the Polygon API.
However, my scales might be the problem. I have intervals of 1 to 25 as the X (horizontal axis) and Dollars from 300000 to 3000000 on the Y (vertical) axis.
Can I use the selfsame coordinates to draw the polygon or do I have to scale and offset them.
I know the API draws in pixels, but do not know how to handle that.
Presently I wish to draw a polygon with the following coordinates:
PolyPoint1.x=1
PolyPoint1.y=300000
PolyPoint2.x=1
PolyPoint2.y=800000
PolyPoint3.x=20
PolyPoint3.y=900000
PolyPoint4.x=20
PolyPoint4.y=500000
I have set the fillcolor and fillstyle to their proper values.
Thanks
I use the Polygon API.
However, my scales might be the problem. I have intervals of 1 to 25 as the X (horizontal axis) and Dollars from 300000 to 3000000 on the Y (vertical) axis.
Can I use the selfsame coordinates to draw the polygon or do I have to scale and offset them.
I know the API draws in pixels, but do not know how to handle that.
Presently I wish to draw a polygon with the following coordinates:
PolyPoint1.x=1
PolyPoint1.y=300000
PolyPoint2.x=1
PolyPoint2.y=800000
PolyPoint3.x=20
PolyPoint3.y=900000
PolyPoint4.x=20
PolyPoint4.y=500000
I have set the fillcolor and fillstyle to their proper values.
Thanks