Hi
To be able to use strict on option, I did my own PixelToProj function. What I don't understand is that if parameter "pnt" is "Byref", I get a memory fault.
Thanks for any explanation.
Olivier
To be able to use strict on option, I did my own PixelToProj function. What I don't understand is that if parameter "pnt" is "Byref", I get a memory fault.
Thanks for any explanation.
Olivier
e2 is system.drawing.point
e2 = ProjToPixel(AxMap1, shap.Point(0))
...
Function ProjToPixel(ByRef winmap As AxMapWinGIS.AxMap, ByVal pnt As MapWinGIS.Point) As System.Drawing.Point
' this function is equivalent to Axmap.ProjToPixel(shap.Point(0).x, shap.Point(0).y, e2.X, e2.Y)
Dim x As Double
Dim y As Double
Dim p As New System.Drawing.Point
winmap.ProjToPixel(pnt.x, pnt.y, x, y)
p.X = CInt(x)
p.Y = CInt(y)
Return p
End Function