ClassDrawTool
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
DrawTool()
Initializes a new instance of the DrawTool class.
Declaration
public DrawTool()
Properties
DefaultBrushColor
Gets or sets the default color of the brush which is used for drawing.
Declaration
public Color DefaultBrushColor { get; set; }
Property Value
Color
The default color of the brush.
DefaultBrushSize
Gets or sets the default size of the brush which is used for drawing.
Declaration
public double DefaultBrushSize { get; set; }
Property Value
The default size of the brush.
Methods
CreatePathFigure(Point)
Declaration
protected virtual PathFigure CreatePathFigure(Point currentPosition)
Parameters
currentPosition
Point
Returns
PathFigure
CreatePathSegment(Point)
Declaration
protected virtual PathSegment CreatePathSegment(Point currentPosition)
Parameters
currentPosition
Point
Returns
PathSegment
Draw(Point)
Draws a geometry.
Declaration
protected override void Draw(Point currentPoint)
Parameters
currentPoint
Point
The current point related to the image.
Overrides
EndDraw(Point)
Ends the drawing of a geometry.
Declaration
protected override void EndDraw(Point currentPoint)
Parameters
currentPoint
Point
The current point related to the image.
Overrides
GetSettingsUI()
Gets the tool' settings UI.
Declaration
public override UIElement GetSettingsUI()
Returns
UIElement
The UI settings.
Overrides
ResetSettings()
Resets the tool' settings if the tool's IsResetSettingsSupported property is true.
Declaration
public override void ResetSettings()
Overrides
SetPathProperties(Path)
Sets properties to the path which contains the geometry which shall be drawn.
Declaration
protected override void SetPathProperties(Path path)
Parameters
path
Path
The path.
Overrides
StartDraw(Point)
Starts the drawing of a geometry.
Declaration
protected override void StartDraw(Point currentPoint)
Parameters
currentPoint
Point
The current point related to the image.
Overrides