Setting Height and Width of an InlineShape

B

Basavaraj

Hi,
When i set height and width of an inline shape. i observed that the number
of pixels will be increased by 1.33 for both height and width. First question
that i want to ask is, parameter that i send for setting height or width, is
the number is number of pixels? what should i do if i want to set the height
and width in centimeters.?
When i set 200 for both height and width, then when i copy the image from
WORD and put in MSPaint, check the number of pixels, it is 266X266. This is
consistent. Can anyone explain me why is the behaviour like this?

Thanks in advance.
 
H

Herbert

Hello,

what always worked for me was using the functions
PointsToMillimeters(Points)
and
MillimetersToPoints(Millimeters)

I hope this helps a bit,
Herbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top