ComponentOne Chart 8.0 for ActiveX
Converting Visual Basic Coordinates

 

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 = Chart3D1.Width / Screen.TwipsPerPixelX

pixheight = Chart3D1.Height / Screen.TwipsPerPixelY

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback