CVB.Net 15.0
Loading...
Searching...
No Matches

Base class of all overlays painting in the overlay bit of an overlay image. More...

Inherits ImageEditorToolBase.

Inherited by BrushBitOverlay, FillBitOverlay, and LineBitOverlay.

Static Public Attributes

static readonly DependencyProperty DrawModeProperty
 Backing store of the DrawMode property.
 
static readonly DependencyProperty CanDrawProperty
 Backing store for the CanDraw property.
 
- Static Public Attributes inherited from ImageEditorToolBase
static readonly DependencyProperty ToolCursorProperty
 Backing store for the ToolCursor property.
 

Protected Member Functions

 BitOverlayBase (ImageEditor editor)
 Registers the overlay to the parent editor.
 
Point GetImagePosition (MouseEventArgs e)
 Gets the current mouse coordinates in image coordinates (no fractions).
 
- Protected Member Functions inherited from ImageEditorToolBase
 ImageEditorToolBase (ImageEditor editor)
 Registers the overlay to the parent editor.
 
override Visual GetVisualChild (int index)
 Gets the visual child at the given index .
 

Static Protected Member Functions

static object CoerceToolCursor (DependencyObject d, object baseValue)
 Helper to coerce the tool cursor in a way, that the default arrow is shown when drawing is not possible.
 

Properties

OverlayBitDrawMode DrawMode [get, set]
 Gets/sets the overlay's draw mode.
 
bool CanDraw [get]
 Gets whether drawing is possible on the current image editor.
 
- Properties inherited from ImageEditorToolBase
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.
 

Additional Inherited Members

- Protected Attributes inherited from ImageEditorToolBase
readonly VisualCollection Visuals
 Stores the visuals of this adorner.
 
- Events inherited from ImageEditorToolBase
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 of all overlays painting in the overlay bit of an overlay image.

Constructor & Destructor Documentation

◆ BitOverlayBase()

BitOverlayBase ( ImageEditor editor)
protected

Registers the overlay to the parent editor.

Parameters
editorParent image editor to adorn.

Member Function Documentation

◆ CoerceToolCursor()

static object CoerceToolCursor ( DependencyObject d,
object baseValue )
staticprotected

Helper to coerce the tool cursor in a way, that the default arrow is shown when drawing is not possible.

Parameters
dBit overlay instance.
baseValueThe defualt value.
Returns
The value to be used.

◆ GetImagePosition()

Point GetImagePosition ( MouseEventArgs e)
protected

Gets the current mouse coordinates in image coordinates (no fractions).

Parameters
eMouse position arguments.
Returns
Image pixel coordinates.