◄CDC► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── int SetROP2( int nDrawMode ); Parameter Description <nDrawMode> Specifies the new drawing mode. It can be any one of the following values: Value Meaning R2_BLACK Pixel is always black. R2_WHITE Pixel is always white. R2_NOP Pixel remains unchanged. R2_NOT Pixel is the inverse of the display color. R2_COPYPEN Pixel is the pen color. R2_NOTCOPYPEN Pixel is the inverse of the pen color. R2_MERGEPENNOT Pixel is a combination of the pen color and the inverse of the display color. R2_MASKPENNOT Pixel is a combination of the colors common to both the pen and the inverse of the display. R2_MERGENOTPEN Pixel is a combination of the display color and the inverse of the pen color. R2_MASKNOTPEN Pixel is a combination of the colors common to both the display and the inverse of the pen. R2_MERGEPEN Pixel is a combination of the pen color and the display color. R2_NOTMERGEPEN Pixel is the inverse of the R2_MERGEPEN color. R2_MASKPEN Pixel is a combination of the colors common to both the pen and the display. R2_NOTMASKPEN Pixel is the inverse of the R2_MASKPEN color. R2_XORPEN Pixel is a combination of the colors in the pen and in the display, but not in both. R2_NOTXORPEN Pixel is the inverse of the R2_XORPEN color. Remarks Sets the current drawing mode. The drawing mode specifies how the colors of the pen and the interior of filled objects are combined with the color already on the display surface. Drawing 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. Return Value The previous drawing mode. See Also ◄CDC::GetDeviceCaps►, ◄CDC::GetROP2►, ◄::SetROP2► -♦-