Application.PointsToPixels (Word)

Converts a measurement from points to pixels. Returns the converted measurement as a Single.

PointsToPixels (Points, fVertical)


MsgBox "180x120 points is equivalent to " _ 
 & PointsToPixels(180, False) & "x" _ 
 & PointsToPixels(120, True) _ 
 & " pixels on this display."

Arguments

The following argument is required

Points (Single) - The point value to be converted to pixels.

Optional arguments

The following argument is optional

fVertical (Boolean) - True to return the result as vertical pixels; False to return the result as horizontal pixels.