Bagikan melalui


RasterOperation Enumeration

RasterOperation Enumeration

Defines values for performing raster operations on drawn ink. Use these values to set the value for the RasterOperation property.

Definition

Visual Basic .NET Public Enum RasterOperation
C# public enum RasterOperation
Managed C++ __value public enum RasterOperation

Constants

Constant Name Description
Black Specifies black pen color.
NotMergePen Specifies the inverse of MergePen.
MaskNotPen Specifies a combination of the colors are common to the background color and the inverse of the pen.
NotCopyPen Specifies the inverse of CopyPen.
MakePenNot Specifies a combination of the colors are common to both the pen and the inverse of the display.
Not Specifies the inverse of the display color.
XOrPen Specifies a combination of the colors in the pen and in the display color, but not in both.
NotMaskPen Specifies the inverse of MaskPen.
MaskPen Specifies a combination of the colors common to both the pen and the display.
NotXOrPen Specifies an inverse of XOrPen.
NoOperation Specifies no operation; the output remains unchanged.
MergeNotPen Specifies a combination of the display color and the inverse of the pen color.
CopyPen Specifies the pen color.
MergePenNot Specifies a combination of the pen color and the inverse of the display color.
MergePen Specifies a combination of the pen color and the display color.
White Specifies a white pen color.

Remarks

Note: Some printers do not support many of the available raster operations. Because of this, the colors you see on the display may be different from the colors shown if they were printed on paper. This is directly related to the printer drivers or printer hardware. You may need to experiment to determine which printers can produce the correct output when various raster operations are set on ink.

When the RasterOperation property is set to anything other than CopyPen, all drawing attributes (anti-aliasing, smoothing, transparency, and pressure) are ignored.

Enumeration Information

Namespace Microsoft.Ink
Assembly Microsoft.Ink (microsoft.ink.dll)
Strong Name Microsoft.Ink, Version=1.7.4009.0, Culture=neutral, PublicKeyToken=a2870d9cc4d021c8

See Also