I have an image box, the width is 2175 and the hight is 4455. I am creating a picture to go in it. i have tried pixels but they seem well to big.
Printable View
I have an image box, the width is 2175 and the hight is 4455. I am creating a picture to go in it. i have tried pixels but they seem well to big.
Quote:
Originally Posted by chris1990
twips
1 twip = (1/1440 in)
If you set the form's ScaleMode (or whatever control is containing the image) to vbPixels then it will show the height/width in pixels. Then you can change it back if you want.
Or use this:
TwipsPerPixelsX/Y are usually = to 15 on most systems but it's still best to use those properties instead of hard coding 15.Code:MsgBox Image1.Width / Screen.TwipsPerPixelsX & "x" & Image1.Height / Screen.TwipsPerPixelsY
do you know the maths to convert 1 twip to * pixels as photoshop only works with pizels or higher.
for future refrence there is a free calculator here.
http://unitconversion.org/typography...onversion.html
I'd recommend using code like DigiRev posted - as the number of twips per pixel varies based on display settings.
This is because Twips (along with CM and Inches) is a measure of printed size, whereas Pixels are a measure of screen size.