Converts between pixel and Himetric units.
p# = HimetsToPixelX(h#)
p# = HimetsToPixelY(h#)
h# = PixelsToHimetX(p#)
h# = PixelsToHimetY(p#)
h, p | : Double expression |
HimetsToPixelX and PixelsToHimetX convert on the horizontal plane.
HimetsToPixelY and PixelsToHimetY convert on the vertical plane.
A Himet (Himetric Unit - the internal OLE- base coordinates unit) is 1/100 mm. 1 Twips (the base unit of GFA-BASIC 32 OLE) is 1/20 Point = 1 /1440 inch. The conversion factor between Twips and Himets are constants: n Twips = n * 2540/1440 Himets.
Debug.Show
Trace _X
Trace HimetsToPixelX(1) // Pixels to Himets (horizontally)
Trace PixelsToHimetX(_X) // Width in Himets
Trace _Y
Trace HimetsToPixelY(1) // Pixels to Himets (vertically)
Trace PixelsToHimetY(_Y) // Height in Himets
PixelsToTwipX(), PixelsToTwipY(), TwipsToPixelX(), TwipsToPixelY()
{Created by Sjouke Hamstra; Last updated: 03/03/2018 by James Gaite}