NAME

META_SETROP2

NEAREST API CALL

#include <windows.h>
INT32 SetROP2
(
HDC32 hdc,
INT32 ROP
);

DESCRIPTION

U16 Value
0 ROP
1
SetROP2 sets the binary raster operation which affects how the current brush and pen combine with the existing window contents when they draw to it, this is equivalent to the GC functions in X, heres an equivalence table and info where src is the brush or pen, and dest is where the pen or brush is being applied, R2_COPYPEN is the intuitive default.
X Function NameMS ROP2 NameOperation
GXclear R2_BLACK 0
GXnor R2_NOTMERGEPEN (NOT src) AND (NOT dst)
GXandInverted R2_MASKNOTPEN (NOT src) AND dst
GXcopyInverted R2_NOTCOPYPEN NOT src
GXandReverse R2_MASKPENNOT src AND NOT dst
GXinvert R2_NOT NOT dst
GXxor R2_XORPEN src XOR dst
GXnand R2_NOTMASKPEN (NOT src) OR (NOT dst)
GXand R2_MASKPEN src AND dst
GXequiv R2_NOTXORPEN (NOT src) XOR dst
GXnoop R2_NOP dst
GXorInverted R2_MERGENOTPEN (NOT src) OR dst
GXcopy R2_COPYPEN src
GXorReverse R2_MERGEPENNOT src OR (NOT dst)
GXor R2_MERGEPEN src OR dst
GXset R2_WHITE 1

back