CropTool
Definition
Namespace:Telerik.Windows.Media.Imaging.Tools
Assembly:Telerik.Windows.Controls.ImageEditor.dll
Syntax:
public class CropTool : ToolBase, ITool
Inheritance: objectToolBaseCropTool
Implements:
Inherited Members
Constructors
public CropTool()
Properties
Gets whether the tool is changing the image size.
public override bool AffectsLayout { get; }
Indicates whether a tool affects layout.
Overrides:
Gets or sets the aspect ratio of the crop rectangle. If FixedSize property is set, the value of AspectRatio property will be ignored.
public double? AspectRatio { get; set; }
The aspect ratio.
FixedSize
Size?
Gets or sets the size of the crop rectangle. The rectangle cannot be resized. If this property is set, the values of AspectRatio and InitialSize properties will be ignored.
public Size? FixedSize { get; set; }
The size of the crop rectangle.
InitialSize
Size?
Gets or sets the initial size of the crop rectangle. If the AspectRatio property is set and the value of this property does not match the AspectRatio property's value, the value of InitialSize property will be ignored.
public Size? InitialSize { get; set; }
The initial size.
Gets whether the tool has made any changes on the image.
public override bool IsDirty { get; }
Indicates is there any changes.
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:
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:
Gets the tool's associated command.
Gets the tool's command context.
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: