DrawTool
Represents a drawing tool.
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public class DrawTool : DrawToolBase, ITool
Inheritance: objectToolBaseDrawToolBaseDrawTool
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the DrawTool class.
public DrawTool()
Properties
DefaultBrushColor
Color
Gets or sets the default color of the brush which is used for drawing.
public Color DefaultBrushColor { get; set; }
The default color of the brush.
Gets or sets the default size of the brush which is used for drawing.
public double DefaultBrushSize { get; set; }
The default size of the brush.
Methods
protected virtual PathFigure CreatePathFigure(Point currentPosition)
PathFigure
protected virtual PathSegment CreatePathSegment(Point currentPosition)
PathSegment
Draws a geometry.
protected override void Draw(Point currentPoint)
The current point related to the image.
Overrides:
Ends the drawing of a geometry.
protected override void EndDraw(Point currentPoint)
The current point related to the image.
Overrides:
Gets the tool' settings UI.
public override UIElement GetSettingsUI()
UIElement
The UI settings.
Overrides:
Resets the tool' settings if the tool's IsResetSettingsSupported property is true.
public override void ResetSettings()
Overrides:
Sets properties to the path which contains the geometry which shall be drawn.
protected override void SetPathProperties(Path path)
The path.
Overrides:
Starts the drawing of a geometry.
protected override void StartDraw(Point currentPoint)
The current point related to the image.
Overrides: