相关技术文章
samzym
这个作者很懒,什么都没留下…
展开
-
RGB颜色值分离
Private Sub GetRGB(ByVal Col As Long, ByRef r As Long, ByRef g As Long, ByRef b As Long) r = Col Mod 256 g = ((Col And &HFF00&) / 256&) Mod 256& b = (Col And &HFF0000) / 65536End Sub原创 2008-11-20 18:57:00 · 754 阅读 · 0 评论 -
getdib获取图像
Private Declare Function DeleteDC Lib "gdi32" (ByVal hDC As Long) As Long Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long 获得指定类型的当前选定对象 Private Declare Function Get原创 2008-11-21 10:07:00 · 1645 阅读 · 1 评论 -
内存找色
以下程序可以将屏幕图片位图数据拷贝到内存环境中,然后进行处理。 不过我用getpixel写了个找色程序,好像比在屏幕设备中找色要慢,搞不懂,留着以后慢慢研究吧。 Dim hDCMemory As Long Dim hBmp As Long Dim hBmpPrev As Long Depending on the value of Client get the p原创 2008-11-20 18:27:00 · 1220 阅读 · 0 评论