Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pixels to Centimetres,

Status
Not open for further replies.

Chance1234

IS-IT--Management
Joined
Jul 25, 2001
Messages
7,871
Location
US
i have a nifty bit of a add in, that allows me to position objects exactly in powerpoint (nothing flash uses the selection.shaperange properties) and i have a nice big brief from a client on where they want everything to be,. problem being , the brief is in Centimetres and the add-in , in pixels.

I have in my mind that to convert pixels ot centimetres is a case of dividing by 28 but im not sure. can anyone please confirm,

Chance,

Filmmaker, gentlemen and I'm on page 23 on the MX Flash Bible
 
Hi Chance,

Pixels are not absolute measurements - a 17" monitor is approximately 35cm horizontally, so at resolution 1024*768 this gives approximately 28 pixels per cm, but running at 1280*1024 it's closer to 36 per cm.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
sorry meant twips

Chance,

Filmmaker, gentlemen and I'm on page 23 on the MX Flash Bible
 
OK, there are 1440 twips to an inch, so 1440/2.54 = 566.9 approximately.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
 
VB will do the conversions for you;
The following converts 1 cm into Twips

Debug.Print ScaleX(1, vbCentimeters, vbTwips)

regards Hugh
 
...but I don't know if ScaleX exists in VBA.

sorry Hugh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top