C# 클래스 Flood.GUI.Controls.ColorLerpBox

Linear-interpolated HSV color box.
상속: Control
파일 보기 프로젝트 열기: FloodProject/flood 1 사용 예제들

공개 메소드들

메소드 설명
ColorLerpBox ( Control parent ) : Flood.GUI.Input

Initializes a new instance of the ColorLerpBox class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Lerp ( Color toColor, Color fromColor, float amount ) : Color

Linear color interpolation.

SetColor ( Color value, bool onlyHue = true ) : void

Sets the selected color.

보호된 메소드들

메소드 설명
OnMouseClickedLeft ( int x, int y, bool down ) : void

Handler invoked on mouse click (left) event.

OnMouseMoved ( int x, int y, int dx, int dy ) : void

Handler invoked on mouse moved event.

Render ( Skins skin ) : void

Renders the control using specified skin.

비공개 메소드들

메소드 설명
CreateGradientBitmap ( Skin skin ) : void
GetColorAt ( int x, int y ) : Color

Gets the color from specified coordinates.

메소드 상세

ColorLerpBox() 공개 메소드

Initializes a new instance of the ColorLerpBox class.
public ColorLerpBox ( Control parent ) : Flood.GUI.Input
parent Control Parent control.
리턴 Flood.GUI.Input

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Lerp() 공개 정적인 메소드

Linear color interpolation.
public static Lerp ( Color toColor, Color fromColor, float amount ) : Color
toColor Color
fromColor Color
amount float
리턴 Color

OnMouseClickedLeft() 보호된 메소드

Handler invoked on mouse click (left) event.
protected OnMouseClickedLeft ( int x, int y, bool down ) : void
x int X coordinate.
y int Y coordinate.
down bool If set to true mouse button is down.
리턴 void

OnMouseMoved() 보호된 메소드

Handler invoked on mouse moved event.
protected OnMouseMoved ( int x, int y, int dx, int dy ) : void
x int X coordinate.
y int Y coordinate.
dx int X change.
dy int Y change.
리턴 void

Render() 보호된 메소드

Renders the control using specified skin.
protected Render ( Skins skin ) : void
skin Skins Skin to use.
리턴 void

SetColor() 공개 메소드

Sets the selected color.
public SetColor ( Color value, bool onlyHue = true ) : void
value Color Value to set.
onlyHue bool Deetrmines whether to only set H value (not SV).
리턴 void