xPx=Image1.Width/ screen.TwipsPerPixelX
yPx=Image1.Height/ screen.TwipsPerPixelY
Dim PIC As IPictureDisp
Dim PictureWidth As Long
Dim PictureHeight As Long
Private Sub Form_Load()
Set PIC = LoadPicture("C:\WINDOWS\SYSTEM32\setup.bmp")
PictureWidth = ScaleX(PIC.Width, vbHimetric, vbPixels)
PictureHeight = ScaleY(PIC.Height, vbHimetric, vbPixels)
MsgBox PictureWidth & " x " & PictureHeight
Set PIC = Nothing
End Sub
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 61