Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents the attributes that are applied to ink when it is drawn.
InkDrawingAttributes has these types of members:
Interfaces
The InkDrawingAttributes class defines these interfaces.
Interface | Description |
---|---|
IInkDrawingAttributes | This object implements the IInkDrawingAttributes COM interface. |
Methods
The InkDrawingAttributes class has these methods.
Method | Description |
---|---|
Clone | Creates a duplicate InkDisp, InkDrawingAttributes, or InkRecognizerContext object. |
Properties
The InkDrawingAttributes class has these properties.
Property | Access type | Description |
---|---|---|
AntiAliased |
Read/write |
Gets or sets the value that specifies whether the foreground and background colors along the edge of the ink are blended to increase the smoothness of an ink stroke. |
Color |
Read/write |
Gets or sets the color of the ink drawn with this InkDrawingAttributes object. |
ExtendedProperties |
Read-only |
Gets the collection of application-defined data that is stored in the InkDrawingAttributes object. |
FitToCurve |
Read/write |
Gets or sets the value that specifies whether ink is rendered as a series of curves instead of as lines between pen sample points. |
Height |
Read/write |
Gets or sets the height of the pen when drawing ink with this InkDrawingAttributes object. |
IgnorePressure |
Read/write |
Gets or sets the value that specifies whether drawn ink automatically becomes wider with increased pressure of the pen tip on the tablet surface. |
PenTip |
Read/write |
Gets or sets the pen tip to use (ball or rectangle) when drawing ink with this InkDrawingAttributes object. |
RasterOperation |
Read/write |
Gets or sets how the pen color interacts with the existing background colors on the display when the ink is drawn. |
Transparency |
Read/write |
Gets or sets the transparency value of drawn ink. Values range from zero (totally opaque) to 255 (totally transparent). |
Width |
Read/write |
Gets or sets the width of the pen when drawing ink with this InkDrawingAttributes object. |
Remarks
This object can be instantiated by calling the CoCreateInstance method in C++.
These drawing attributes can be associated with a stroke or a cursor and specify settings such as color, width, and transparency.
To specify the drawing attributes of a stroke, use the DrawingAttributes property of the IInkStrokeDisp object. To specify the drawing attributes of all of the strokes within a collection of strokes, call the ModifyDrawingAttributes method of the InkStrokes collection.
Each InkCollector object, InkOverlay object, and InkPicture control can specify a different set of drawing attributes for the same cursor. Use the DrawingAttributes property of the IInkCursor object to get or set the drawing attributes of a cursor.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server |
None supported |
Header |
|
Library |
|
See also
-
DrawingAttributes Property
-
DrawingAttributes Property
-
DefaultDrawingAttributes Property
-
DefaultDrawingAttributes Property