Base class of all overlays painting in the overlay bit of an overlay image.
More...
Inherits ImageEditorToolBase.
Inherited by BrushBitOverlay, FillBitOverlay, and LineBitOverlay.
|
|
static readonly DependencyProperty | DrawModeProperty |
| | Backing store of the DrawMode property.
|
| |
|
static readonly DependencyProperty | CanDrawProperty |
| | Backing store for the CanDraw property.
|
| |
|
static readonly DependencyProperty | ToolCursorProperty |
| | Backing store for the ToolCursor property.
|
| |
|
| 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.
|
| |
|
|
OverlayBitDrawMode | DrawMode [get, set] |
| | Gets/sets the overlay's draw mode.
|
| |
|
bool | CanDraw [get] |
| | Gets whether drawing is possible on the current image editor.
|
| |
|
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.
|
| |
|
|
readonly VisualCollection | Visuals |
| | Stores the visuals of this adorner.
|
| |
|
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< DisplayZoomEventArgs > | ParentActualZoomCenterChanged |
| | Event that is fired when the parent ImageEditor's actual zoom center is changed.
|
| |
|
EventHandler< DisplayZoomEventArgs > | ParentActualZoomFactorChanged |
| | Event that is fired when the parent ImageEditor's actual zoom factor is changed.
|
| |
Base class of all overlays painting in the overlay bit of an overlay image.
◆ BitOverlayBase()
Registers the overlay to the parent editor.
- Parameters
-
| editor | Parent image editor to adorn. |
◆ 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
-
| d | Bit overlay instance. |
| baseValue | The 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
-
| e | Mouse position arguments. |
- Returns
- Image pixel coordinates.