可以利用picturebox
dim pixels() as long
redim pixels(upperx,uppery)
for i=1 to upperx
    for y=1 to uppery
        pixels=picture1.point(x,y)
    next
next
你可以用picture1.paintpicture 把图片copy到picture1上
别忘了,把autoredraw设为true

解决方案 »

  1.   

    你也可以用api GetPixel 
    这里有个例子
    http://www.csdn.net/expert/topic/475/475857.xml
      

  2.   

    提醒各位!!
    picturebox和GetPixel都不能在后台工作!!
    也就是说无法在函数中操作!!
    这就是我说“最好在控件不显示的情况下”的原因!!
      

  3.   

    你可以设置picture1.visible=true
    autoredraw=true即可无法操作是因为getpixels所用的句柄是显示设备描述体上的,所以你能在屏幕上看到什么得到的就是什么。
    而autoredraw=true可以使图片在内存上保存起来