DrawToolBase
Represents an abstraction of a tool which is responsible for drawing a geometries over an image.
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public abstract class DrawToolBase : ToolBase, ITool
Inheritance: objectToolBaseDrawToolBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the DrawToolBase class.
public DrawToolBase()
Properties
Gets whether the tool is changing the image size.
public override bool AffectsLayout { get; }
Indicates whether a tool affects layout.
Overrides:
Gets whether the tool has a preview overlay on the main image.
public override bool IsPreviewOverlay { get; }
Indicates if a tool has a preview overlay.
Overrides:
Specifies whether the settings of a tool can be reset. The common implementation of a tool returns true.
public override bool IsResetSettingsSupported { get; }
Indicates whether the settings can be reseted.
Overrides:
Methods
Attaches the UI. The method is invoked on tool's execution.
public override void AttachUI(ToolInitInfo previewInitInfo)
The preview init info.
Overrides:
Detaches the UI. The method is invoked when the tool execution is canceled.
public override void DetachUI()
Overrides:
Draws a geometry.
protected virtual void Draw(Point currentPoint)
The current point related to the image.
Ends the drawing of a geometry.
protected virtual void EndDraw(Point currentPoint)
The current point related to the image.
Gets the tool's associated command.
Gets the tool's command context.
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 virtual void SetPathProperties(Path path)
The path.
Starts the drawing of a geometry.
protected virtual void StartDraw(Point currentPoint)
The current point related to the image.