C# 클래스 WindowsFormsApplication1.ColourConverter

상속: Form
파일 보기 프로젝트 열기: karajensen/code-notes

공개 메소드들

메소드 설명
ColourConverter ( ) : System

Constructur

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
BlendColour ( HSV one, HSV two, double blendvalue ) : HSV

Colour Blending: http://www.stuartdenman.com/improved-color-blending/ Where blend value is [0-1]

ConvertColour ( RGB rgb ) : HSV

Converting RGB-HSV: http://www.poynton.com/PDFs/coloureq.pdf p15 Where rgb is [0,1]

ConvertColour ( HSV hsv ) : RGB

Converting HSV-RGB: http://www.poynton.com/PDFs/coloureq.pdf p15 Where h is [0,360] and sv is [0,1]

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SetBlendValue ( ) : void

Updates and sets the blend value

SetMiddleColour ( ) : void

Updates and sets the middle button colour

button1_Click ( object sender, EventArgs e ) : void

On Button 1 click show colour dialog

button2_Click ( object sender, EventArgs e ) : void

On Button 2 click show colour dialog

buttonRandom_Click ( object sender, EventArgs e ) : void

On Random button click

trackBar1_ValueChanged ( object sender, EventArgs e ) : void

On Track bar value change

메소드 상세

ColourConverter() 공개 메소드

Constructur
public ColourConverter ( ) : System
리턴 System

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void