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

Drawer to draw a single line in the bit mask. More...

Inherits BitOverlayBase.

Public Member Functions

 LineBitOverlay (ImageEditor editor)
 Creates the line bit overlay object.
 

Static Public Attributes

static readonly DependencyProperty EndPointProperty
 Backing store for the EndPoint property.
 
static readonly DependencyProperty StartPointProperty
 Backing store for the StartPoint property.
 
static readonly DependencyProperty ThicknessProperty
 Backing store of the Thickness dependency property.
 
- Static Public Attributes inherited from BitOverlayBase
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

override void OnRender (DrawingContext drawingContext)
 Renders the line overlay if necessary.
 
- Protected Member Functions inherited from BitOverlayBase
 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 .
 

Properties

Point EndPoint [get]
 Gets the measure line end point.
 
Point StartPoint [get]
 Gets/sets the point from which to measure.
 
int Thickness [get, set]
 Thickness of the line in pixels.
 
- Properties inherited from BitOverlayBase
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

- Static Protected Member Functions inherited from BitOverlayBase
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.
 
- 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

Drawer to draw a single line in the bit mask.

Constructor & Destructor Documentation

◆ LineBitOverlay()

Creates the line bit overlay object.

Parameters
editorEditor to draw on.

Member Function Documentation

◆ OnRender()

override void OnRender ( DrawingContext drawingContext)
protected

Renders the line overlay if necessary.

Parameters
drawingContextContext to draw on.