Exemple #1
0
 public Color ToColor()
 {
     var rgb = new RGB(this);
     return Color.FromArgb(rgb.Red, rgb.Green, rgb.Blue);
 }
Exemple #2
0
 public HSV(RGB rgb)
 {
     Hue = GetHue(rgb.Red, rgb.Green, rgb.Blue);
     Saturation = GetSaturation(rgb.Red, rgb.Green, rgb.Blue);
     Value = GetValue(rgb.Red, rgb.Green, rgb.Blue);
 }