IInkDrawingAttributes::RasterOperation
4/8/2010
Gets or sets an IInkDrawingAttributes value that defines how the colors of the pen and background interact.
Syntax
[propput] HRESULT put_RasterOperation (
[in] InkRasterOperation RasterOperation
);
[propget] HRESULT get_RasterOperation (
[out, retval] InkRasterOperation *RasterOperation
);
Parameters
RasterOperation
A value that defines how the colors of the pen and background interact. The default value is InkRasterOperation.IRO_CopyPen, which indicates that the current pen color is used.This property is read/write.
Return Value
HRESULT value | Description |
---|---|
S_OK |
Success. |
E_POINTER |
Parameter pointer was NULL or invalid. |
E_INK_EXCEPTION |
An exception occurred inside the method. |
Remarks
The InkRasterOperation 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 InkRasterOperation enumeration type.
When the RasterOperation property is set to anything other than CopyPen, all drawing attributes—anti–aliasing, smoothing, and transparency—are ignored.
Requirements
Header | msinkaut.h |
Windows Embedded CE | Windows CE 5.0 and later |
Windows Mobile | Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later |