I put a picture box on a form and loaded some picture on it:
View1.Picture = LoadPicture(App.Path & "\sample2.bmp")
When I tried to get the width and height of the Picture property, the values I received are not in pixels nor twips. Does anybody knows how to determine the size of an image in pixels in Visual Basic 6?
They are in himetrics.
Use
With View1
MsgBox .ScaleX(.Picture.Width, vbHimetric, vbPixels)
MsgBox .ScaleY(.Picture.Height, vbHimetric, vbPixels)
End With
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With