WmfBinaryRasterOperation

WmfBinaryRasterOperation enumeration

The BinaryRasterOperation Enumeration section lists the binary raster-operation codes. Raster operation codes define how metafile processing combines the bits from the selected pen with the bits in the destination bitmap.

public enum WmfBinaryRasterOperation

Values

NameValueDescription
Black10, Pixel is always 0.
Notmergepen2DPon, Pixel is the inverse of the MERGEPEN color
Masknotpen3DPna, Pixel is a combination of the screen color and the inverse of the pen color.
Notcopypen4Pn, Pixel is the inverse of the pen color.
Maskpennot5PDna, Pixel is a combination of the colors common to both the pen and the inverse of the screen.
Not6Dn, Pixel is the inverse of the screen color.
Xorpen7DPx, Pixel is a combination of the colors in the pen or in the screen, but not in both.
Notmaskpen8DPan, Pixel is the inverse of the MASKPEN color.
Maskpen9DPa, Pixel is a combination of the colors common to both the pen and the screen.
Notxorpen10DPxn, Pixel is the inverse of the XORPEN color.
Nop11D, Pixel remains unchanged.
Mergenotpen12DPno, Pixel is a combination of the colors common to both the screen and the inverse of the pen.
Copypen13P, Pixel is the pen color.
Mergepennot14PDno, Pixel is a combination of the pen color and the inverse of the screen color.
Mergepen15DPo, Pixel is a combination of the pen color and the screen color.
White161, Pixel is always 1

Remarks

Each raster-operation code represents a Boolean operation in which the values of the pixels in the selected pen and the destination bitmap are combined. Following are the two operands used in these operations. Operand Meaning P Selected pen D Destination bitmap a Bitwise AND n Bitwise NOT (inverse) o Bitwise OR x Bitwise exclusive OR (XOR)

See Also