Hi velsto,
Thanks for this answer, I have also this function in VB, but the inconvenient is that it returns X, Y as double when pixels are integer values (system.drawing.point). So you can't pass integer values with strict "on". That's why I used this way. The strange thing is that passing "byref" a point value like shape.Point(0) generates an AccesViolationException when function returns. And this doesn't comes from the ProjtoPixel called in the function as I tested without it.
By the way, I suggest that this function should returns Integer as there are no double for pixel values.
Thanks for this answer, I have also this function in VB, but the inconvenient is that it returns X, Y as double when pixels are integer values (system.drawing.point). So you can't pass integer values with strict "on". That's why I used this way. The strange thing is that passing "byref" a point value like shape.Point(0) generates an AccesViolationException when function returns. And this doesn't comes from the ProjtoPixel called in the function as I tested without it.
By the way, I suggest that this function should returns Integer as there are no double for pixel values.