IInkCollector::get_DefaultDrawingAttributes method (msinkaut.h)

Gets or sets the default drawing attributes to use when drawing and displaying ink.

This property is read/write.

Syntax

HRESULT get_DefaultDrawingAttributes(
  IInkDrawingAttributes **CurrentAttributes
);

Parameters

CurrentAttributes

Return value

None

Remarks

The drawing attributes specified with this property are the attributes that are assigned to a new cursor.

The default drawing attributes are as follows:

AntiAliased = TRUE

Color = BLACK (RGB(0,0,0)) if not in High Contrast mode; otherwise, Color=COLOR_WINDOWTEXT.

FitToCurve = FALSE

Height = 1 (in ink space units)

IgnorePressure = FALSE

PenTip = Ball

RasterOperation = CopyPen

Transparency = 0 (totally opaque)

Width = 53 (in ink space units)

To set different attributes on a new cursor, use the DrawingAttributes property of the IInkCursor object.

To change the drawing attributes of a single stroke, use the DrawingAttributes property of the IInkStrokeDisp object. To change the drawing attributes of a collection of strokes, call the ModifyDrawingAttributes method of the InkStrokes collection.

Note  The DefaultDrawingAttributes property contains the drawing attributes that all cursors use unless they set their own DrawingAttributes property. For example, a new IInkCursor object uses DefaultDrawingAttributes, and an old IInkCursor object on which the DrawingAttributes is set to NULL also uses DefaultDrawingAttributes.
 

Requirements

Requirement Value
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header msinkaut.h
Library InkObj.dll

See also

DrawingAttributes Property

IInkCollector

IInkCursor Interface

IInkStrokeDisp Interface

InkCollector Class

InkDrawingAttributes Class

InkStrokes Collection

ModifyDrawingAttributes Method