GetObjectAPI获取位图信息的问题
使用GetObjectAPI获取位图信息:
GetObjectAPI Bitmaphandle, Len(bm), bm 'bm为Private Type BITMAP
调试的时候发现,bm的数据结构获得的信息中bmBits =0,这是为什么,本来以为这是位图内存中的地址。请问,如果要得到位图数据的地址怎么办。谢谢!!!
附BITMAP的结构:
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