Function Reference


Retrieves the foreground mix mode of the specified device context

#include <WinAPIGdi.au3>
_WinAPI_SetROP2 ( $hDC, $iMode )


$hDC Handle to the device context.
$iMode The mix mode. This parameter can be one of the following values.

Return Value

Success: The value that specifies the previous mix mode.
Failure: 0.


Mix modes define how GDI combines source and destination colors when drawing with the current pen. The mix modes
are binary raster operation codes, representing all possible Boolean functions of two variables, using the binary
operations AND, OR, and XOR (exclusive OR), and the unary operation NOT. The mix mode is for raster devices only;
it is not available for vector devices.

See Also

Search SetROP2 in MSDN Library.