比如说,一幅800x600大小的bmp图片,我想知道其中某一点是什么颜色,这点在屏幕中所处的位置是多少,该如何做呢?

解决方案 »

  1.   

    到这里查查bmp的格式,应该就可以计算出来了http://www.csdn.net/Dev/Format/graphics/Bmp.html
      

  2.   

    bitmap.LoadFromFile(filename); //调入文件
     bitmap.Canvas.Pixels(x,y) //获取颜色信息
      

  3.   

    把位图读进内存,然后COLORREF  colr = pMemDc->GetPixels();
      

  4.   

    http://www.aoi.it/code.htm
    有一个CXimage类,其中有个函数GetPixelColor可以得到每点的RGB值
      

  5.   

    http://www.aoi.it/code.htm
    有一个CXimage类,其中有个函数GetPixelColor可以得到每点的RGB值