Click or drag to resize
DrawTool Class
Represents a drawing tool.
Inheritance Hierarchy

Namespace: Telerik.Windows.Media.Imaging.Tools
Assembly: Telerik.Windows.Controls.ImageEditor (in Telerik.Windows.Controls.ImageEditor.dll) Version: 2017.2.614.40 (2017.2.614.40)
Syntax
public class DrawTool : DrawToolBase

The DrawTool type exposes the following members.

Constructors
  NameDescription
Public methodDrawTool
Initializes a new instance of the DrawTool class.
Top
Methods
  NameDescription
Public methodAttachUI
Attaches the UI. The method is invoked on tool's execution.
(Inherited from DrawToolBase.)
Protected methodCreatePathFigure
Protected methodCreatePathSegment
Public methodDetachUI
Detaches the UI. The method is invoked when the tool execution is canceled.
(Inherited from DrawToolBase.)
Protected methodDraw
Draws a geometry.
(Overrides DrawToolBaseDraw(Point).)
Protected methodEndDraw
Ends the drawing of a geometry.
(Overrides DrawToolBaseEndDraw(Point).)
Public methodGetCommand
Gets the tool's associated command.
(Inherited from DrawToolBase.)
Public methodGetContext
Gets the tool's command context.
(Inherited from DrawToolBase.)
Public methodGetSettingsUI
Gets the tool' settings UI.
(Overrides ToolBaseGetSettingsUI.)
Public methodResetSettings
Resets the tool' settings if the tool's IsResetSettingsSupported property is true.
(Overrides DrawToolBaseResetSettings.)
Protected methodSetPathProperties
Sets properties to the path which contains the geometry which shall be drawn.
(Overrides DrawToolBaseSetPathProperties(Path).)
Protected methodStartDraw
Starts the drawing of a geometry.
(Overrides DrawToolBaseStartDraw(Point).)
Top
Properties
  NameDescription
Public propertyAffectsLayout
Gets whether the tool is changing the image size.
(Inherited from DrawToolBase.)
Public propertyDefaultBrushColor
Gets or sets the default color of the brush which is used for drawing.
Public propertyDefaultBrushSize
Gets or sets the default size of the brush which is used for drawing.
Public propertyIsDirty
Gets whether the tool has made any changes on the image.
(Overrides ToolBaseIsDirty.)
Public propertyIsPreviewOverlay
Gets whether the tool has a preview overlay on the main image.
(Inherited from DrawToolBase.)
Public propertyIsResetSettingsSupported
Specifies whether the settings of a tool can be reset. The common implementation of a tool returns true.
(Inherited from DrawToolBase.)
Top
See Also