Share via


Raster Operation Codes

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

GDI Reference | GetROP2 | SetROP2 | BitBlt | PatBlt | StretchBlt | MAKEROP4

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.