C# Класс Paint.ColorSelector

Color selector - a tool allowing the user to specify the exact color to use by specifying individual RGBA values
Наследование: ToolBoxToolTouchBase, IColorSelector
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ColorSelector ( IGraphicsDisplay graphicsDisplay, ColorSelectorDefinition colorSelectorDefinition ) : System

Initializes a new instance of the Paint.ColorSelector class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

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

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

Handles a particular touch by the user

OnColorChanged ( EventArgs e ) : void

Raises the color changed event.

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

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

Hooks on to all events for each gauge

UnHookGaugeEvents ( ) : void

Unhook all events for the Gauge sub-controls

gauge_MarkerChanged ( object sender, EventArgs e ) : void

Event occurrs whenever the gauge's marked position/value changes

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

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

Initializes a new instance of the Paint.ColorSelector class.
public ColorSelector ( IGraphicsDisplay graphicsDisplay, ColorSelectorDefinition colorSelectorDefinition ) : System
graphicsDisplay IGraphicsDisplay /// Graphics display. ///
colorSelectorDefinition ColorSelectorDefinition /// Color selector definition - layout of the color selector ///
Результат 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() защищенный Метод

Handles a particular touch by the user
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint
Результат void

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

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