Bagikan melalui


InkDrawingAttributes Class

InkDrawingAttributes Class

Represents the attributes that are applied to ink when it is drawn.

Members

Enumeration Description
InkPenTip Defines values that specify whether the pen tip is round or rectangular.
InkRasterOperation Defines values for performing raster operations on drawn ink.
Method Description
Clone Specifies the creation of a duplicate InkDrawingAttributes object.
Property Description
AntiAliased Returns or sets the value that specifies whetherthe foreground and background colors along the edge of the ink areblended to increase the smoothness of an ink stroke.
Color Returns or sets the color of the ink drawn with this InkDrawingAttributes object.
ExtendedProperties Returns the collection of application-defined data that is stored in the InkDrawingAttributes object.
FitToCurve Returns or sets the value that specifies whether ink is rendered as a series of curves instead of as lines between pen sample points.
Height Returns or sets the height of the pen when drawing ink with this InkDrawingAttributes object.
IgnorePressure Returns or sets the value that specifies whether drawn ink automatically becomes wider with increased pressure of the pen tip on the tablet surface.
PenTip Returns or sets the pen tip to use (ball or rectangle) when drawing ink with this InkDrawingAttributes object.
RasterOperation Returns or sets how the pen color interacts with the existing background colors on the display when the ink is drawn.
Transparency Returns or sets the transparency value of drawn ink. Values range from zero (totally opaque) to 255 (totally transparent).
Width Returns 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++ or by using the New keyword in Microsoft® Visual Basic® 6.0.

These drawingattributes 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.

COM Implementation

This object implements the IInkDrawingAttributes COM interface.