C# Class ThingM.Blink1.ColorManager.ColorWheel

Inheritance: IDisposable
Exibir arquivo Open project: todbot/blink1 Class Usage Examples

Public Properties

Property Type Description
ColorChanged ColorChangedEventHandler

Public Methods

Method Description
ColorWheel ( Rectangle colorRectangle, Rectangle brightnessRectangle, Rectangle selectedColorRectangle ) : System
Draw ( Graphics g, ThingM.Blink1.ColorManager.ColorHandler HSV ) : void
Draw ( Graphics g, Point mousePoint ) : void
SetMouseUp ( ) : void

Protected Methods

Method Description
OnColorChanged ( ThingM.Blink1.ColorManager.ColorHandler RGB, ThingM.Blink1.ColorManager.ColorHandler HSV ) : void

Private Methods

Method Description
CalcBrightnessPoint ( int brightness ) : Point
CalcCoordsAndUpdate ( ThingM.Blink1.ColorManager.ColorHandler HSV ) : void
CalcDegrees ( Point pt ) : int
CreateGradient ( ) : void
DrawBrightnessPointer ( Point pt ) : void
DrawColorPointer ( Point pt ) : void
DrawLinearGradient ( Color TopColor ) : void
GetColors ( ) : Color[]
GetPoint ( double degrees, double radius, Point centerPoint ) : Point
GetPoints ( double radius, Point centerPoint ) : Point[]
IDisposable ( ) : void
UpdateDisplay ( ) : void

Method Details

ColorWheel() public method

public ColorWheel ( Rectangle colorRectangle, Rectangle brightnessRectangle, Rectangle selectedColorRectangle ) : System
colorRectangle System.Drawing.Rectangle
brightnessRectangle System.Drawing.Rectangle
selectedColorRectangle System.Drawing.Rectangle
return System

Draw() public method

public Draw ( Graphics g, ThingM.Blink1.ColorManager.ColorHandler HSV ) : void
g System.Drawing.Graphics
HSV ThingM.Blink1.ColorManager.ColorHandler
return void

Draw() public method

public Draw ( Graphics g, Point mousePoint ) : void
g System.Drawing.Graphics
mousePoint Point
return void

OnColorChanged() protected method

protected OnColorChanged ( ThingM.Blink1.ColorManager.ColorHandler RGB, ThingM.Blink1.ColorManager.ColorHandler HSV ) : void
RGB ThingM.Blink1.ColorManager.ColorHandler
HSV ThingM.Blink1.ColorManager.ColorHandler
return void

SetMouseUp() public method

public SetMouseUp ( ) : void
return void

Property Details

ColorChanged public_oe property

public ColorChangedEventHandler ColorChanged
return ColorChangedEventHandler