Class ShapeTool
Represents a tool which draws shapes over an image.
Inherited Members
Namespace: Telerik.Windows.Media.Imaging.Tools
Assembly: Telerik.Windows.Controls.ImageEditor.dll
Syntax
public class ShapeTool : DrawToolBase, ITool
Constructors
ShapeTool()
Properties
IsDirty
Gets whether the tool has made any changes on the image.
Declaration
public override bool IsDirty { get; }
Property Value
System.Boolean
Indicates is there any changes. |
Overrides
Shapes
Gets or sets the shapes.
Declaration
public ObservableCollection<IShape> Shapes { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<IShape>
The shapes. |
Methods
Draw(Point)
Draws a shape geometry.
Declaration
protected override void Draw(Point currentPoint)
Parameters
System.Windows.Point
currentPoint
The current point related to the image. |
Overrides
EndDraw(Point)
Ends the drawing of a geometry.
Declaration
protected override void EndDraw(Point currentPoint)
Parameters
System.Windows.Point
currentPoint
The current point related to the image. |
Overrides
GetSettingsUI()
Gets the tool' settings UI.
Declaration
public override UIElement GetSettingsUI()
Returns
System.Windows.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
System.Windows.Shapes.Path
path
The path. |