CVB.Net 15.0
ImageEditorToolBase Class Reference

Base class for all ImageEditor tools. More...

Inherits Adorner.

Inherited by BitOverlayBase.

Static Public Attributes

static readonly DependencyProperty ToolCursorProperty
 Backing store for the ToolCursor property.
 

Protected Member Functions

 ImageEditorToolBase (ImageEditor editor)
 Registers the overlay to the parent editor. More...
 
override Visual GetVisualChild (int index)
 Gets the visual child at the given index . More...
 

Protected Attributes

readonly VisualCollection Visuals
 Stores the visuals of this adorner.
 

Properties

Cursor ToolCursor [get, set]
 Gets/sets the cursor the ImageEditor shows when this tool is selected.
 
WinRect ImageViewportRect [get]
 Gets the rect placement of the image based on the ParentEditor coordinates.
 
ImageEditor ParentEditor [get]
 Gets the parent editor control.
 
override int VisualChildrenCount [get]
 Gets the number of visual children.
 

Events

EventHandler< PropertyValueChangedEventArgs< Image > > ParentImageChanged
 Event that is fired when the parent ImageEditor's Image is changed.
 
EventHandler< PropertyValueChangedEventArgs< DisplayCanvas > > ParentDisplayCanvasChanged
 Event that is fired when the parent ImageEditor's DisplayCanvas is changed.
 
EventHandler< DisplayZoomEventArgsParentActualZoomCenterChanged
 Event that is fired when the parent ImageEditor's actual zoom center is changed.
 
EventHandler< DisplayZoomEventArgsParentActualZoomFactorChanged
 Event that is fired when the parent ImageEditor's actual zoom factor is changed.
 

Detailed Description

Base class for all ImageEditor tools.

Adorners of this type also support Visuals.

Constructor & Destructor Documentation

◆ ImageEditorToolBase()

ImageEditorToolBase ( ImageEditor  editor)
protected

Registers the overlay to the parent editor.

Parameters
editorParent image editor to adorn.

Member Function Documentation

◆ GetVisualChild()

override Visual GetVisualChild ( int  index)
protected

Gets the visual child at the given index .

Parameters
indexIndex of the visual.
Returns
The Visual at index .