ObjectDCL Banner

XTwipsToPixels Method

Description

Some ActiveX controls calculate their distances not in Pixels but in a unit called Twips. Twips are used to calculate the screen in actual inches. There are 1440 Twips per inch. If you require the units in Pixels, use this method to convert the X coordinate Twips to Pixels.

Parameters

nPixels
Integer identifying the amount of pixels to convert.

Return Values

Returns the following according to the situation:

  • Integer indicating the corresponding amount in twips.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_XTwipsToPixels 
		nPixels [as Integer])

Applies For

ActiveX.

Example

CopyCode imageCopy Code
; Convert this value
(Odcl_XTwipsToPixels MyProject_MyForm_MyControl 60)

See Also

XPixelsToTwips