C# Class Flood.GUI.Controls.HSVColorPicker

HSV color picker with "before" and "after" color boxes.
Inheritance: Control, IColorPicker
Show file Open project: FloodProject/flood Class Usage Examples

Public Methods

Method Description
HSVColorPicker ( Control parent ) : System

Initializes a new instance of the HSVColorPicker class.

SetColor ( System.Color color, bool onlyHue = false, bool reset = false ) : void

Sets the selected color.

Private Methods

Method Description
ColorBoxChanged ( Control control ) : void
ColorSliderChanged ( Control control ) : void
NumericTyped ( Control control ) : void
UpdateControls ( System.Color color ) : void

Method Details

HSVColorPicker() public method

Initializes a new instance of the HSVColorPicker class.
public HSVColorPicker ( Control parent ) : System
parent Control Parent control.
return System

SetColor() public method

Sets the selected color.
public SetColor ( System.Color color, bool onlyHue = false, bool reset = false ) : void
color System.Color Color to set.
onlyHue bool Determines whether only the hue should be set.
reset bool Determines whether the "before" color should be set as well.
return void