Shape & InlineShape - get bitmap true size

D

David Thielen

T

Tony Jollans

I don't believe you can change it, but the bitmap is represented in the
EnhMetaFileBits collection so (Ubound-LBound+1) should give length. If by
physical size you mean width x height, these are separate properties. DPI is
more complex and, AIUI, doesn't have real meaning on screen.
 
D

David Thielen

Yep, we need pixels x DPI - which is a bitmap setting, but not a Word
setting AFAIK. Bummer.

thanks - dave


I don't believe you can change it, but the bitmap is represented in the
EnhMetaFileBits collection so (Ubound-LBound+1) should give length. If by
physical size you mean width x height, these are separate properties. DPI is
more complex and, AIUI, doesn't have real meaning on screen.


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
T

Tony Jollans

Sorry, I'm outside my area of knowledge now, so this is just for my interest
....

What are you doing where having the bits of the bitmap and the dimensions of
the image is not sufficient?
 
D

David Thielen

We use it for a data tag where the imported data is a bitmap. The tag
can force the size - or be set to match the bitmap. When they change
to match the bitmap, we want to get the actual, not displayed, size of
the bitmap and resize it to that.

thanks - dave


Sorry, I'm outside my area of knowledge now, so this is just for my interest
...

What are you doing where having the bits of the bitmap and the dimensions of
the image is not sufficient?


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 

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