ComponentOne VSView 8.0
TwipsPerPixelX Property

Returns the number of twips per printer pixel in the horizontal direction.

Syntax

val# = [form!]VSPrinter.TwipsPerPixelX

Remarks

Windows API routines generally require measurements in pixels. You can use the TwipsPerPixelX and TwipsPerPixelY properties to convert measurements from twips to pixels.

Note: The VB objects Screen and Printer also have TwipsPerPixelX and TwipsPerPixelY properties that return the number of twips per screen and printer pixel. Generally, printer have higher resolution than screens, so the Printer object returns smaller values than the Screen object. The VSPrinter properties return the same value as VB's Printer object (provided the same device is selected).

Data Type

Double

 

 


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

Product Support Forum  |  Documentation Feedback