Converts a size from TWIPS in the current GefScreen to pixels. | |
Syntax: | object.TwipsToPixelsSize Width, Height |
Parameters: |
Width As
long* -
Height As
long* -
|
Description: | Converts a size from TWIPS in the current
GefScreen to pixels. Examples Private xDown As Long Private yDown As Long Sub MeasureDown(x As Long, y As Long, flags As
Long) xDown = x yDown = y End Sub Sub MeasureUp(x As Long, y As Long, flags As Long) x = abs(x - xDown) y = abs(y - yDown) CimGetScreen.TwipsToPixelsSize x, y MsgBox "mouse moved " & x & "," & y
& " pixels" End Sub |
See Also: | PixelsToTwipsPos , PixelsToTwipsSize , TwipsToPixelsPos |