C# Класс LongoMatch.Drawing.Widgets.Blackboard

A canvas that can be used as a blackboard in which objects are drawn over the image set in BackgroundCanvas.Background.
Наследование: BackgroundCanvas
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Blackboard ( IWidget widget ) : System
Clear ( bool resetDrawing = true ) : void

Clears the drawing.

DeleteSelection ( ) : void

Deletes the current selection from the frame drawing.

Draw ( IContext context, Area area ) : void
Save ( ) : Image

Saves the current canvas to an Image

Save ( string filename ) : void

Saves the current canvas to a file

Zoom ( double zoom, Point center = null ) : void

Zoom into the image and center it in the click.

Защищенные методы

Метод Описание
CursorMoved ( Point coords ) : void
Dispose ( bool disposing ) : void
HandleLeftButton ( Point coords, ButtonModifier modif ) : void
SelectionChanged ( System sel ) : void
ShowMenu ( Point coords ) : void
StartMove ( Selection sel ) : void
StopMove ( bool moved ) : void

Приватные методы

Метод Описание
Add ( IBlackboardObject drawable ) : ICanvasSelectableObject
ClipRoi ( Area roi ) : void
UpdateCounters ( ) : void

Описание методов

Blackboard() публичный Метод

public Blackboard ( IWidget widget ) : System
widget IWidget
Результат System

Clear() публичный Метод

Clears the drawing.
public Clear ( bool resetDrawing = true ) : void
resetDrawing bool
Результат void

CursorMoved() защищенный Метод

protected CursorMoved ( Point coords ) : void
coords Point
Результат void

DeleteSelection() публичный Метод

Deletes the current selection from the frame drawing.
public DeleteSelection ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Draw() публичный Метод

public Draw ( IContext context, Area area ) : void
context IContext
area LongoMatch.Core.Common.Area
Результат void

HandleLeftButton() защищенный Метод

protected HandleLeftButton ( Point coords, ButtonModifier modif ) : void
coords Point
modif ButtonModifier
Результат void

Save() публичный Метод

Saves the current canvas to an Image
public Save ( ) : Image
Результат Image

Save() публичный Метод

Saves the current canvas to a file
public Save ( string filename ) : void
filename string
Результат void

SelectionChanged() защищенный Метод

protected SelectionChanged ( System sel ) : void
sel System
Результат void

ShowMenu() защищенный Метод

protected ShowMenu ( Point coords ) : void
coords Point
Результат void

StartMove() защищенный Метод

protected StartMove ( Selection sel ) : void
sel LongoMatch.Core.Store.Drawables.Selection
Результат void

StopMove() защищенный Метод

protected StopMove ( bool moved ) : void
moved bool
Результат void

Zoom() публичный Метод

Zoom into the image and center it in the click.
public Zoom ( double zoom, Point center = null ) : void
zoom double New zoom value.
center Point Mew image center.
Результат void