ComponentOne Chart 8.0 for ActiveX
Converting VB Coordinates

 

Converting VB 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

 

 


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

Product Support Forum  |  Documentation Feedback