如题。

解决方案 »

  1.   

    一样的
    要用GDI的API函数SetROP2
    The SetROP2 function sets the current foreground mix mode. GDI uses the foreground mix mode to combine pens and interiors of filled objects with the colors already on the screen. The foreground mix mode defines how colors from the brush or pen and the colors in the existing image are to be combined. int SetROP2(
      HDC hdc,         // handle to DC
      int fnDrawMode   // drawing mode
    );
      

  2.   

    to viena(维也纳nn)
    能给个小例子吗,谢谢!
    to Knight94(愚翁) 
    没有这样的功能,那要想实现一边画一边擦,有什么好的解决思路吗?
      

  3.   

    to 没有这样的功能,那要想实现一边画一边擦,有什么好的解决思路吗?没有特别好的,用Graphics.Clear或者用底图来刷新区域。
      

  4.   

    clear 估计不行,因为重绘频率非常高,肯定会严重闪烁。
    用底图刷新是什么意思,直接整图刷新吗?这样似乎显得笨拙了点,而且我的程序里可能有20多个这样的线程同时在运行,效率估计是个问题。哎,不知道怎么办好了……
      

  5.   

    同意一楼的,用 API 函数。我做过,是可以的,但例子现在找不到了
      

  6.   

    我用了个比较取巧的办法实现了我要的效果,但是效率仍然是个问题。所以我还在继续实验1楼说的API,谢谢各位。我找到的一段代码也给大家一起看看:
    http://topic.csdn.net/t/20050510/21/3996350.html