VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Twips to/from Pixels David Goodlad (5 replies, 0 views) (2001-Mar-24) It's been awhile since I've had to use it and I don't have vb on this machine here to check, but I believe that the Screen object has a property .TwipsPerPixel, or maybe two properties .TwipsPerPixelX and .TwipsPerPixelY. Use something like this to convert:
iPixels = iTwips / Screen.TwipsPerPixel
iTwips = iPixels * Screen.TwipsPerPixel
Simple as that :)
David
|