C# 클래스 ARCed.Core.ColorWheel

Color wheel for getting a user-selected color
상속: IDisposable
파일 보기 프로젝트 열기: borisblizzard/arcreator

공개 프로퍼티들

프로퍼티 타입 설명
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