C# Класс Flood.GUI.Controls.ColorLerpBox

Linear-interpolated HSV color box.
Наследование: Control
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ColorLerpBox ( Control parent ) : Flood.GUI.Input

Initializes a new instance of the ColorLerpBox class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Lerp ( Color toColor, Color fromColor, float amount ) : Color

Linear color interpolation.

SetColor ( Color value, bool onlyHue = true ) : void

Sets the selected color.

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

Метод Описание
OnMouseClickedLeft ( int x, int y, bool down ) : void

Handler invoked on mouse click (left) event.

OnMouseMoved ( int x, int y, int dx, int dy ) : void

Handler invoked on mouse moved event.

Render ( Skins skin ) : void

Renders the control using specified skin.

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

Метод Описание
CreateGradientBitmap ( Skin skin ) : void
GetColorAt ( int x, int y ) : Color

Gets the color from specified coordinates.

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

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

Initializes a new instance of the ColorLerpBox class.
public ColorLerpBox ( Control parent ) : Flood.GUI.Input
parent Control Parent control.
Результат Flood.GUI.Input

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Lerp() публичный статический Метод

Linear color interpolation.
public static Lerp ( Color toColor, Color fromColor, float amount ) : Color
toColor Color
fromColor Color
amount float
Результат Color

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

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
Результат void

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

Handler invoked on mouse moved event.
protected OnMouseMoved ( int x, int y, int dx, int dy ) : void
x int X coordinate.
y int Y coordinate.
dx int X change.
dy int Y change.
Результат void

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

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
Результат void

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

Sets the selected color.
public SetColor ( Color value, bool onlyHue = true ) : void
value Color Value to set.
onlyHue bool Deetrmines whether to only set H value (not SV).
Результат void