vb6 twips and pixel

protootorp
08-21-2009, 10:33 AM
I have a picture loaded into a image
the size of the image is 64x64 in pixels
960x960 in twips

I want the size of the image to be 40x40 instead of 64x64 but I can't seem to figure out the right size of it in twips....

lets make this easy.. the question I got is how to convert pixels into twips

image1.width = 40 \ vbTwips
image1.height = 40 \ vbTwips

please and thank you!

dilettante
08-21-2009, 10:44 AM
The Screen object will provide you with "twips per pixel" values for the X and Y directions (they can be different though usually they aren't these days).

You can multiply your #pixels by twips-per to get twips.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum