C# Класс Paint.ColorSetter

Color setter - A tool used to indicate the currently selected color for drawing
Наследование: IColorSetter, IToolBoxTool
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ColorSetter ( IGraphicsDisplay graphicsDisplay, ColorSetterDefinition colorSetterDefinition ) : System

Initializes a new instance of the Paint.ColorSetter class.

Draw ( bool refreshDisplay ) : void

Draw this tool on to the image

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

Метод Описание
DrawRectangle ( Rectangle rectangle, Color color ) : void

Draws the rectangle.

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

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

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

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

Draws the rectangle.
protected DrawRectangle ( Rectangle rectangle, Color color ) : void
rectangle Microsoft.Xna.Framework.Rectangle
color Color
Результат void