'声明API
Private Declare Function GetBitmapBits Lib "gdi32 " Alias "GetBitmapBits " (ByVal hBitmap As Long, ByVal dwCount As Long, lpBits As Any) As Long Dim Pic as StdPicture
Dim Size as Long Dim Array1() as Byte '要装入的数组 Dim back as Long '接受返回值 Size=Width*Height*Bpp '图像大小=宽度×高度×颜色深度 Redim Array1(0 to Size-1) as Byte back=GetBitmapBits(Pic.handle,Size,Array1(0)) '获取象素数据 if back=0 then Msgbox "Error! " '如果返回0则表明出错。
运行环境是?要什么软件运行呢,请帮忙急需
Private Declare Function GetBitmapBits Lib "gdi32 " Alias "GetBitmapBits " (ByVal hBitmap As Long, ByVal dwCount As Long, lpBits As Any) As Long Dim Pic as StdPicture
Dim Size as Long Dim Array1() as Byte '要装入的数组 Dim back as Long '接受返回值 Size=Width*Height*Bpp '图像大小=宽度×高度×颜色深度 Redim Array1(0 to Size-1) as Byte back=GetBitmapBits(Pic.handle,Size,Array1(0)) '获取象素数据 if back=0 then Msgbox "Error! " '如果返回0则表明出错。
运行环境是?要什么软件运行呢,请帮忙急需
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货