ShapeTool
Represents a tool which draws shapes over an image.
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public class ShapeTool : DrawToolBase, ITool
Inheritance: objectToolBaseDrawToolBaseShapeTool
Implements:
Inherited Members
Constructors
Initializes a new instance of the ShapeTool class.
public ShapeTool()
Properties
Gets whether the tool has made any changes on the image.
public override bool IsDirty { get; }
Indicates is there any changes.
Overrides:
Gets or sets the shapes.
public ObservableCollection<IShape> Shapes { get; }
The shapes.
Methods
Draws a shape 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: