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

Drawing brush for draw/erase overlay bits. More...

Inherits BitOverlayBase.

Public Member Functions

 BrushBitOverlay (ImageEditor editor)
 Creates a bit brush overlay.
 

Static Public Attributes

static readonly DependencyProperty PixelHeightProperty
 Backing store for the PixelHeight property.
 
static readonly DependencyProperty PixelLocationProperty
 Backing store for the PixelLocation property.
 
static readonly DependencyProperty PixelWidthProperty
 Backing store for the PixelWidth property.
 
static readonly DependencyProperty ShapeProperty
 Backing store for the Shape 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 HitTestResult HitTestCore (PointHitTestParameters hitTestParameters)
 This adorner does not take part in hit-testing.
 
override void OnRender (DrawingContext drawingContext)
 Renders the brush tool.
 
- 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

int PixelHeight [get, set]
 Gets/sets the height of this brush in image pixels.
 
Point PixelLocation [get]
 Gets the current location in image pixel the brush is over.
 
int PixelWidth [get, set]
 Gets/sets the height of this brush in image pixels.
 
BitBrushShape Shape [get, set]
 Gets/sets the shape of this brush.
 
- 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

Drawing brush for draw/erase overlay bits.

Constructor & Destructor Documentation

◆ BrushBitOverlay()

Creates a bit brush overlay.

Parameters
editorEditor to use the object on.

Member Function Documentation

◆ HitTestCore()

override HitTestResult HitTestCore ( PointHitTestParameters hitTestParameters)
protected

This adorner does not take part in hit-testing.

Parameters
hitTestParametersIgnored.
Returns
Always null.

◆ OnRender()

override void OnRender ( DrawingContext drawingContext)
protected

Renders the brush tool.

Parameters
drawingContextContext to draw on.