This documentation is archived and is not being maintained.

RasterOperation Enumeration

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

'Declaration
Public Enumeration RasterOperation
'Usage
Dim instance As RasterOperation

Member nameDescription
BlackSpecifies black pen color.
NotMergePenSpecifies the inverse of MergePen.
MaskNotPenSpecifies a combination of the colors are common to the background color and the inverse of the pen.
NotCopyPenSpecifies the inverse of CopyPen.
MakePenNotSpecifies a combination of the colors are common to both the pen and the inverse of the display.
NotSpecifies the inverse of the display color.
XOrPenSpecifies a combination of the colors in the pen and in the display color, but not in both.
NotMaskPenSpecifies the inverse of MaskPen.
MaskPenSpecifies a combination of the colors common to both the pen and the display.
NotXOrPenSpecifies an inverse of XOrPen.
NoOperationSpecifies no operation; the output remains unchanged.
MergeNotPenSpecifies a combination of the display color and the inverse of the pen color.
CopyPenSpecifies the pen color.
MergePenNotSpecifies a combination of the pen color and the inverse of the display color.
MergePenSpecifies a combination of the pen color and the display color.
WhiteSpecifies a white pen color.

NoteNote:

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.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0
Show: