7,763
社区成员
发帖
与我相关
我的任务
分享
Public Sub ShowToImage(ByRef Image As Image)
Image.Stretch = True With bMapinfo.bmiHeader
.biSize = Len(bMapinfo.bmiHeader)
.biWidth = lWidth
.biHeight = -lHeight
.biPlanes = 1
.biBitCount = 32
.biCompression = BI_RGB
mWidthBytes = .biWidth * 4
.biSizeImage = mWidthBytes * .biHeight
End With
SetDIBits GetDC(0), Image.Picture.Handle, 0, lHeight, ByVal VarPtr(p(1, 1)), bMapinfo, DIB_RGB_COLORS
Image.Refresh
End Sub