Enum WmfBinaryRasterOperation

Enum WmfBinaryRasterOperation

Namespace: Aspose.Imaging.FileFormats.Wmf.Consts
Assembly: Aspose.Imaging.dll (25.7.0)

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

public enum WmfBinaryRasterOperation
    {
        NOTSRCCOPY = 0,
        SRCCOPY = 1,
        NOTSRCERASE = 2,
        MERGECOPY = 4,
        MERGEPAINT = Tertiary.MERGEPAINT,
        PATCOPY = 6,
        XORPEN = 7,
        SRCAND = 8,
        SRCINVERT = 9,
        DSTINVERT = 10,
        WHITENESS = 12,
        BLACKNESS = 13,
        NOTSRCCOPYAND = 14,
        NOTDSTCOPY = 15,
        SRCERASE = 16,
        NTSCCOPY = 17,
        PATPAINT = 18,
        MERGEHCOPY = 19,
        COLORREF = 20
    }

Fields

Black = 1

0, Pixel is always 0.

Copypen = 13

P, Pixel is the pen color.

Masknotpen = 3

DPna, Pixel is a combination of the screen color and the inverse of the pen color.

Maskpen = 9

DPa, Pixel is a combination of the colors common to both the pen and the screen.

Maskpennot = 5

PDna, Pixel is a combination of the colors common to both the pen and theinverse of the screen.

Mergenotpen = 12

DPno, Pixel is a combination of the colors common to both the screen andthe inverse of the pen.

Mergepen = 15

DPo, Pixel is a combination of the pen color and the screen color.

Mergepennot = 14

PDno, Pixel is a combination of the pen color and the inverse of thescreen color.

Nop = 11

D, Pixel remains unchanged.

Not = 6

Dn, Pixel is the inverse of the screen color.

Notcopypen = 4

Pn, Pixel is the inverse of the pen color.

Notmaskpen = 8

DPan, Pixel is the inverse of the MASKPEN color.

Notmergepen = 2

DPon, Pixel is the inverse of the MERGEPEN color

Notxorpen = 10

DPxn, Pixel is the inverse of the XORPEN color.

White = 16

1, Pixel is always 1

Xorpen = 7

DPx, Pixel is a combination of the colors in the pen or in the screen, but not in both.

Remarks

Each raster-operation code represents a Boolean operation in which the values of the pixels in theselected pen and the destination bitmap are combined. Following are the two operands used inthese operations.Operand MeaningP Selected penD Destination bitmapa Bitwise ANDn Bitwise NOT (inverse)o Bitwise ORx Bitwise exclusive OR (XOR)

 English