C# Класс Paint.ColorPicker

Color picker - Simple tool that has a preset color - the user can select this tool in order to start using that color
Наследование: ToolBoxToolTouchBase, IColorPicker
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System

Initializes a new instance of the Paint.ColorPicker class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

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

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

Handles a particular touch by the user

OnColorSelected ( EventArgs e ) : void

Raises the color selected event.

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

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

Initializes a new instance of the Paint.ColorPicker class.
public ColorPicker ( IGraphicsDisplay graphicsDisplay, ColorPickerDefinition colorPickerDefinition ) : System
graphicsDisplay IGraphicsDisplay
colorPickerDefinition ColorPickerDefinition
Результат 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

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

Raises the color selected event.
protected OnColorSelected ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (Should be EventArgs.empty) ///
Результат void