R2_MASKPEN Pixel is a combination of the colors common to both the pen and the screen (final pixel = pen AND screen pixel).
R2_XORPEN Pixel is a combination of the colors that are in the pen or in the screen, but not in both (final pixel = pen XOR screen pixel).英文是能懂,但就无法理解
final pixel = pen AND screen pixel,请问这个AND是怎么运算的,能否用个例子说明?同理还有下面的XOR
还有,当两个图形相交时交点有时候就没有颜色了,这个是什么原因呢
谢谢
R2_XORPEN Pixel is a combination of the colors that are in the pen or in the screen, but not in both (final pixel = pen XOR screen pixel).英文是能懂,但就无法理解
final pixel = pen AND screen pixel,请问这个AND是怎么运算的,能否用个例子说明?同理还有下面的XOR
还有,当两个图形相交时交点有时候就没有颜色了,这个是什么原因呢
谢谢
解决方案 »
- 请教为什么在线程函数中创建非模态对话框老是一闪就没了?
- ATL建的复合控件怎么不响应WM_INITDIALOG消息??
- 一个简单问题。。
- 边框问题
- 【请教】关于SPI接收数据包的截获--WSPRrcv
- Notebook LCD 亮度设置
- ××× 项目要失败了,合同没有标明 违约金 是多少? 有没有默认的违约金? 怎样才能让我赔偿的最少?×××
- 紧急求救:哪位大哥大姐有VC版的断点续传多线程下载程序源代码?
- 用程序设置DNS的问题...
- 请问如何将clistbox中的highlight改变颜色呢?而不是用他默认的深蓝色?
- ★★★在程序中启动一个桌面应用程序的问题★★★
- (求助)如何实现密码输入成功才可操作主窗体(解除锁屏)。。。。
110
AND 011
---------
010异或运算
110
XOR 011
---------
101
例如画笔的颜色是RGB(255, 0, 0),屏幕的颜色是白色RGB(255, 255, 255)
位运算后是什么颜色的?
如果这个例子不好说明也可以用别的
橡皮筋法好像就要设置模式吧,总觉得不好理解,先画出来的是怎么不见的呢?