Programming User Interaction > Returning Coordinate Values > Converting Visual Basic Coordinates |
In Visual Basic, coordinate values are measured in twips (1,440 twips equals one inch). The following code converts the height and width of a chart from twips to pixels:
pixwidth = Chart2D1.Width / Screen.TwipsPerPixelX
pixheight = Chart2D1.Height / Screen.TwipsPerPixelY