# RasterOpConstants
{: .no_toc }

Raster-operation codes for the *Op* argument of the **PaintPicture** method, controlling how the source bitmap is combined with the destination pixels. The numeric values are the standard Windows GDI ROP codes.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbDstInvert**{: #vbDstInvert } | &H550009 | Inverts the destination. |
| **vbMergeCopy**{: #vbMergeCopy } | &HC000CA | AND of source and pattern. |
| **vbMergePaint**{: #vbMergePaint } | &HBB0226 | OR of inverted source and destination. |
| **vbNotSrcCopy**{: #vbNotSrcCopy } | &H330008 | Copies the inverted source to the destination. |
| **vbNotSrcErase**{: #vbNotSrcErase } | &H1100A6 | Inverts the result of OR-ing source and destination. |
| **vbPatCopy**{: #vbPatCopy } | &HF00021 | Copies the pattern to the destination. |
| **vbPatInvert**{: #vbPatInvert } | &H5A0049 | XOR of pattern and destination. |
| **vbPatPaint**{: #vbPatPaint } | &HFB0A09 | OR of pattern and destination, then OR with inverted source. |
| **vbSrcAnd**{: #vbSrcAnd } | &H8800C6 | AND of source and destination. |
| **vbSrcCopy**{: #vbSrcCopy } | &HCC0020 | Copies the source to the destination. |
| **vbSrcErase**{: #vbSrcErase } | &H440328 | AND of source and inverted destination. |
| **vbSrcInvert**{: #vbSrcInvert } | &H660046 | XOR of source and destination. |
| **vbSrcPaint**{: #vbSrcPaint } | &HEE0086 | OR of source and destination. |
