WmfBinaryRasterOperation

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class WmfBinaryRasterOperation extends System.Enum

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.


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)

Fields

FieldDescription
Black0, Pixel is always 0.
NotmergepenDPon, Pixel is the inverse of the MERGEPEN color
MasknotpenDPna, Pixel is a combination of the screen color and the inverse of the pen color.
NotcopypenPn, Pixel is the inverse of the pen color.
MaskpennotPDna, Pixel is a combination of the colors common to both the pen and the inverse of the screen.
NotDn, Pixel is the inverse of the screen color.
XorpenDPx, Pixel is a combination of the colors in the pen or in the screen, but not in both.
NotmaskpenDPan, Pixel is the inverse of the MASKPEN color.
MaskpenDPa, Pixel is a combination of the colors common to both the pen and the screen.
NotxorpenDPxn, Pixel is the inverse of the XORPEN color.
NopD, Pixel remains unchanged.
MergenotpenDPno, Pixel is a combination of the colors common to both the screen and the inverse of the pen.
CopypenP, Pixel is the pen color.
MergepennotPDno, Pixel is a combination of the pen color and the inverse of the screen color.
MergepenDPo, Pixel is a combination of the pen color and the screen color.
White1, Pixel is always 1

Black

public static final int Black

0, Pixel is always 0.

Notmergepen

public static final int Notmergepen

DPon, Pixel is the inverse of the MERGEPEN color

Masknotpen

public static final int Masknotpen

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

Notcopypen

public static final int Notcopypen

Pn, Pixel is the inverse of the pen color.

Maskpennot

public static final int Maskpennot

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

Not

public static final int Not

Dn, Pixel is the inverse of the screen color.

Xorpen

public static final int Xorpen

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

Notmaskpen

public static final int Notmaskpen

DPan, Pixel is the inverse of the MASKPEN color.

Maskpen

public static final int Maskpen

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

Notxorpen

public static final int Notxorpen

DPxn, Pixel is the inverse of the XORPEN color.

Nop

public static final int Nop

D, Pixel remains unchanged.

Mergenotpen

public static final int Mergenotpen

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

Copypen

public static final int Copypen

P, Pixel is the pen color.

Mergepennot

public static final int Mergepennot

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

Mergepen

public static final int Mergepen

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

White

public static final int White

1, Pixel is always 1