
picture height is different from Picture.picture.height
The Picture.Picture.Height in in Hi-metrics. Thanks, again, Microsoft, for
making things confusing and then documenting them so well!!!
You have to use the ScaleX and ScaleY methods to convert from Hi-metric to
twips, or to pixels if you so desire. You will not, however, find the
ScaleX and ScaleY methods on the stdPicture object. Instead, you will have
to resort to using the ScaleX and ScaleY method found on a particular
PictureBox or Form, or on the Printer object.
Now tell, me, other than for the stdPicture object, who uses Hi-metrics on
a Form, PictureBox, or Printer? Nobody, that's who!
Makes perfect sense to me!
Quote:
> Dear all,
> A error I encountered was that VB gives me two different numbers and have
> nothing to do with Scale...
> Try this: (Put a small picture in a new picture box)
> msgbox Picture1.height
> msgbox Picture1.picture.height
> You come out with two totally different numbers. Can anyone tell me how
to
> convert this number from Picture1.Picture.Height to twips. I couldn't see
> any relationship between them. I need to use the Picture1.Picture.Height.