C# Класс Paint.BrushSizeSelector

Brush size selector - tool allowing the user to pick the size of the brush for drawing
Наследование: ToolBoxToolTouchBase, IBrushSizeSelector
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BrushSizeSelector ( IGraphicsDisplay graphicsDisplay, BrushSizeSelectorDefinition brushSizeDefinition ) : System

Initializes a new instance of the Paint.BrushSizeSelector class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

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

Метод Описание
HandleTouch ( ITouchPoint touchPosition ) : void

Handle the user interaction for a particular touch/gesture type and position

OnBrushSizeChanged ( EventArgs e ) : void

Raises the brush size changed event.

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

Метод Описание
DrawBrush ( ) : void

Draws the brush size representation in the current color

brushSizeGauge_MarkerChanged ( object sender, EventArgs e ) : void

Fires when the gauge has been altered, indicating the brush size needs to change

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

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

Initializes a new instance of the Paint.BrushSizeSelector class.
public BrushSizeSelector ( IGraphicsDisplay graphicsDisplay, BrushSizeSelectorDefinition brushSizeDefinition ) : System
graphicsDisplay IGraphicsDisplay /// Graphics display. ///
brushSizeDefinition BrushSizeSelectorDefinition /// Brush size definition - layout of the control. ///
Результат System

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

Draw this tool on to the image
public Draw ( bool refreshDisplay ) : void
refreshDisplay bool /// True = we should redraw the entire control /// False = just draw any updates ///
Результат void

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

Handle the user interaction for a particular touch/gesture type and position
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint /// Touch position and type of gesture ///
Результат void

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

Raises the brush size changed event.
protected OnBrushSizeChanged ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (should be EventArgs.Empty) ///
Результат void