C# Class WindowsFormsApplication1.ColourConverter

Inheritance: Form
Mostrar archivo Open project: karajensen/code-notes

Public Methods

Method Description
ColourConverter ( ) : System

Constructur

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
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

Method Details

ColourConverter() public method

Constructur
public ColourConverter ( ) : System
return System

Dispose() protected method

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