Raster Operation Codes (Compact 2013)

3/28/2014

Raster-operation codes define how the graphics device interface (GDI) combines the bits from the selected pen with the bits in the destination bitmap.

GDI uses two types of raster operations:

  • Binary, which involve two operands: a pen and a destination bitmap. For more information, see Binary Raster Operations.
  • Ternary, which involve three operands: a source bitmap, a brush, and a destination bitmap. For more information, see Ternary Raster Operations.

Both binary and ternary raster operations use Boolean operators.

See Also

Reference

GDI Reference
GetROP2
SetROP2
BitBlt
PatBlt
StretchBlt
MAKEROP4