TXTextControl.DocumentServer.DocumentController.Twips2Pixels Method

Converts a value in twips to a value in pixels according to a specified resolution. This is a helper method that is useful when implementing pixel-based document viewers.


public static int Twips2Pixels(int twips, float dpi)
[Visual Basic]
Public Shared Function Twips2Pixels(ByVal twips As Integer, ByVal dpi As Single) As Integer
Parameter Description

The value in twips to be converted.


The resolution the conversion is based on.

Return Value

Returns the value converted to pixels according to the specified resolution.

See Also