Private Declare Function GetObjectAPI Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Private Type BITMAP
bmType As Long
bmWidth As Long
bmHeight As Long
bmWidthBytes As Long
bmPlanes As Integer
bmBitsPixel As Integer
bmBits As Long
End Type
Public Sub psize()
Dim bm As BITMAP
Dim picPicture As IPictureDisp
Set picPicture = stdole.LoadPicture("e:\gta.bmp")
Call GetObjectAPI(picPicture, Len(bm), bm)
MsgBox "大小 : " & bm.bmWidth & "×" & bm.bmHeight
End Sub
VBA 读取图片大小
最新推荐文章于 2024-06-27 00:42:32 发布
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
图片生成
Stable-Diffusion
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率
2155

被折叠的 条评论
为什么被折叠?



