Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.Hm2PixelsX Function

Converts a HiMetric X Value to Pixels (Very useful for Picture size check)

Syntax
Public Function Hm2PixelsX (ByVal hm As Long) As Long
Parameters
Parameter Description
ByVal hm As Long HiMetric X value (ex. Picture1.Picture.Width)
Remarks
Useful if you cannot use the VB6 Scale function (lImageWidth = scaleX(oImagePaint.Width, vbHimetric, vbPixels))