[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TWidgetSet.SetROP2

Sets the Foreground Mixing Mode in an device context.

Declaration

Source position: winapih.inc line 254

public function TWidgetSet.SetROP2(

  DC: HDC;

  Mode: Integer

):Integer; virtual;

Arguments

DC

  

The device context.

Mode

  

The new mode.

Function result

The old mode, zero on failure.

Description

The raster operation specifies how foreground painting (Brush, Pen) is combined with the current pixels in the DC.

The operation combines bitwise the distinct red, green and blue values of the pixel colors.

There exist 16 raster operations, according to the possible combinations of two (boolean) values:

See also

TWidgetSet.GetROP2

  

The current Foreground Mixing Mode in an device context.

#lcl.LCLType.R2_COPYPEN

  

Binary raster operation (Dst op Pen): Pen.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.