This documentation is archived and is not being maintained.

DrawingAttributes.RasterOperation Property

Gets or sets a value that defines how the colors of the pen and background interact.

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

public RasterOperation RasterOperation { get; set; }

Property Value

Type: Microsoft.Ink.RasterOperation
The value that defines how the colors of the pen and background interact.

Value

Meaning

CopyPen

The current pen color is used.

RasterOperation value

A member of the RasterOperation enumeration type defines how the colors of the pen and background interact.

The RasterOperation enumeration defines values for performing raster operations on drawn ink. For example, if you want to perform subtractive transparency, set the raster value to MaskPen.

For a complete list of available raster operations, see the RasterOperation enumeration type.

NoteNote:

Many printers do not support many of the available raster operations. Because of this, the colors displayed may be different than the colors printed. This is directly related to the printer drivers or printer hardware. You may have to experiment to determine which printers can produce the correct output when various raster operations are set on ink.

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

This C# example sets the raster operation of the InkCollector object's default pen to XOrPen.

theInkCollector.DefaultDrawingAttributes.RasterOperation =
    RasterOperation.XOrPen;

This Microsoft® Visual Basic® .NET example sets the raster operation of the InkCollector object's default pen to XOrPen.

theInkCollector.DefaultDrawingAttributes.RasterOperation = _
    RasterOperation.XOrPen

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: