Поделиться через


DrawingAttributes.RasterOperation - свойство

Обновлен: Ноябрь 2007

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

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Property RasterOperation As RasterOperation
'Применение
Dim instance As DrawingAttributes
Dim value As RasterOperation

value = instance.RasterOperation

instance.RasterOperation = value
public RasterOperation RasterOperation { get; set; }
public:
property RasterOperation RasterOperation {
    RasterOperation get ();
    void set (RasterOperation value);
}
/** @property */
public RasterOperation get_RasterOperation()
/** @property */
public  void set_RasterOperation(RasterOperation value)
public function get RasterOperation () : RasterOperation
public function set RasterOperation (value : RasterOperation)

Значение свойства

Тип: 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.

ms582109.alert_note(ru-ru,VS.90).gifПримечание.

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 Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

DrawingAttributes Класс

DrawingAttributes - члены

Microsoft.Ink - пространство имен

RasterOperation