I am importing data that was exported from a vb6 application into a new app made in c#.net.
The pixel coordinates in the data are in vbPixels. Is there a way to convert them into the real pixel coordinate? The bitmap is 800×500 and the pixels are like x=2265 y=1620.
I am importing data that was exported from a vb6 application into a new
Share
Use these functions from .NET:
ToPixelsX – Used for coordinate conversion.
ToPixelsY – Used for coordinate conversion.
And read this to understand what is going on. Twips have a very special definition that is dependent on resolution.
In my previous answer I assumed that you knew that the give coordinate was the size of the image.