示例#1
0
 /// <summary>
 /// Toes the color of the HSB.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <returns></returns>
 public static HSBColor ToHSBColor(Color color)
 {
     return(HSBColor.FromColor(color));
 }
示例#2
0
 /// <summary>
 /// Toes the color of the HSB.
 /// </summary>
 /// <param name="HTMLColor">Color of the HTML.</param>
 /// <returns></returns>
 public static HSBColor ToHSBColor(string HTMLColor)
 {
     return(HSBColor.FromColor(ToColor(HTMLColor)));
 }
示例#3
0
 /// <summary>
 /// Toes the color of the HTML.
 /// </summary>
 /// <param name="hsbColor">Color of the HSB.</param>
 /// <returns></returns>
 public static string ToHTMLColor(HSBColor hsbColor)
 {
     return(ToHTMLColor(HSBColor.FromHSB(hsbColor)));
 }
示例#4
0
 /// <summary>
 /// Toes the color.
 /// </summary>
 /// <param name="hsbColor">Color of the HSB.</param>
 /// <returns></returns>
 public static Color ToColor(HSBColor hsbColor)
 {
     return(hsbColor.Color);
 }
示例#5
0
 public static Color FromHSB(HSBColor hsbColor)
 {
     return(FromHSB(hsbColor.h, hsbColor.s, hsbColor.b));
 }