C# Class ARCed.Core.ColorWheel

Color wheel for getting a user-selected color
Inheritance: IDisposable
Afficher le fichier Open project: borisblizzard/arcreator

Méthodes publiques

Свойство Type Description
ColorChanged ColorChangedEventHandler

Private Properties

Свойство Type Description
CalcBrightnessPoint Point
CalcCoordsAndUpdate void
CalcDegrees int
CreateGradient void
DrawBrightnessPointer void
DrawColorPointer void
DrawLinearGradient void
GetColors Color[]
GetPoint Point
GetPoints Point[]
UpdateDisplay void

Méthodes publiques

Méthode Description
ColorWheel ( Rectangle colorRectangle, Rectangle brightnessRectangle, Rectangle selectedColorRectangle ) : System

Default constructor

Draw ( Graphics g, ColorHandler hsv ) : void

Draws the images

Draw ( Graphics g, Point mousePoint ) : void

Draws the images

IDisposable ( ) : void
SetMouseUp ( ) : void

Sets the mouse state to MouseState.MouseUp

Méthodes protégées

Méthode Description
OnColorChanged ( ColorHandler argb, ColorHandler hsv ) : void

Private Methods

Méthode Description
CalcBrightnessPoint ( int brightness ) : Point
CalcCoordsAndUpdate ( 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[]
UpdateDisplay ( ) : void

Method Details

ColorWheel() public méthode

Default constructor
public ColorWheel ( Rectangle colorRectangle, Rectangle brightnessRectangle, Rectangle selectedColorRectangle ) : System
colorRectangle System.Drawing.Rectangle Rectangle for the color wheel image
brightnessRectangle System.Drawing.Rectangle Rectangle for the brightness control
selectedColorRectangle System.Drawing.Rectangle Rectangle for the selected color control
Résultat System

Draw() public méthode

Draws the images
public Draw ( Graphics g, ColorHandler hsv ) : void
g System.Drawing.Graphics Graphics context to draw with
hsv ColorHandler HSV color to draw
Résultat void

Draw() public méthode

Draws the images
public Draw ( Graphics g, Point mousePoint ) : void
g System.Drawing.Graphics Graphics context to draw with
mousePoint Point MousePoint to draw
Résultat void

IDisposable() public méthode

public IDisposable ( ) : void
Résultat void

OnColorChanged() protected méthode

protected OnColorChanged ( ColorHandler argb, ColorHandler hsv ) : void
argb ColorHandler
hsv ColorHandler
Résultat void

SetMouseUp() public méthode

Sets the mouse state to MouseState.MouseUp
public SetMouseUp ( ) : void
Résultat void

Property Details

ColorChanged public_oe property

Handler for color change events
public ColorChangedEventHandler ColorChanged
Résultat ColorChangedEventHandler