ClassShapeTool
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
ShapeTool()
Initializes a new instance of the ShapeTool class.
Declaration
public ShapeTool()
Properties
IsDirty
Gets whether the tool has made any changes on the image.
Declaration
public override bool IsDirty { get; }
Property Value
Indicates is there any changes.
Overrides
Shapes
Gets or sets the shapes.
Declaration
public ObservableCollection<IShape> Shapes { get; }
Property Value
The shapes.
Methods
Draw(Point)
Draws a shape 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