按位或运算符“|”是双目运算符。其功能是参与运算的两数各对应的二进位相或。只要对应的二个二进位有一个为1时,结果位就为1。当参与运算的是负数时,参与两个数均以补码出现。
按位或向结果表达式添加位,而按位与只选择两个运算符之间相同的位。
Bitwise-or adds bits to the resulting expression, whereas bitwise-and selects only those bits in common between its two operators.
如果被测试表达式中应当包含按位或运算符,则应当在条件表达式的两侧加上括号。
If the tested expression should contain the bitwise-or operator, then parentheses should be added around the conditional-expression.
为保证这些图像组件按正确顺序绘制,每个像素 — 或 块(详见下文)—的帧在实际的位块传输步骤开始之前就已经确定。
To keep these image components drawn in the correct order, each pixel's — or chunk's (more on that below) — frame is determined prior to the actual blitting steps.
应用推荐