SRCINVERT
SRCINVERT is one of the predefined raster-operation (ROP) codes used by the Windows Graphics Device Interface (GDI) in functions such as BitBlt and StretchBlt. It specifies a per-pixel boolean operation where the resulting destination pixel is computed as the exclusive OR (XOR) of the corresponding source and destination pixels, effectively performing D' = S XOR D.
In practical terms, SRCINVERT toggles the destination pixels wherever the source pixels are set. If a source
SRCINVERT is commonly used for simple masking, stamping, or creating inverted overlays in legacy Windows graphical
Limitations include its dependence on bitwise operations rather than alpha blending, which makes it less suitable
See also: SRCCOPY, DSTINVERT, SRCAND, SRCPAINT, XOR-based operations, Windows GDI raster operations.