C# Класс ARCed.Core.ColorWheel

Color wheel for getting a user-selected color
Наследование: IDisposable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ColorChanged ColorChangedEventHandler

Private Properties

Свойство Тип Описание
CalcBrightnessPoint Point
CalcCoordsAndUpdate void
CalcDegrees int
CreateGradient void
DrawBrightnessPointer void
DrawColorPointer void
DrawLinearGradient void
GetColors Color[]
GetPoint Point
GetPoints Point[]
UpdateDisplay void

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

Метод Описание
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

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

Метод Описание
OnColorChanged ( ColorHandler argb, ColorHandler hsv ) : void

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

Метод Описание
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

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

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

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
Результат System

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

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
Результат void

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

Draws the images
public Draw ( Graphics g, Point mousePoint ) : void
g System.Drawing.Graphics Graphics context to draw with
mousePoint Point MousePoint to draw
Результат void

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

public IDisposable ( ) : void
Результат void

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

protected OnColorChanged ( ColorHandler argb, ColorHandler hsv ) : void
argb ColorHandler
hsv ColorHandler
Результат void

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

Sets the mouse state to MouseState.MouseUp
public SetMouseUp ( ) : void
Результат void

Описание свойств

ColorChanged публичное свойство

Handler for color change events
public ColorChangedEventHandler ColorChanged
Результат ColorChangedEventHandler