コード例 #1
0
ファイル: HsvColor.cs プロジェクト: stonezhu870/WPFControls
 /// <summary>
 /// Creates a new HsvColor structure by using the ScRGB alpha channel and color channel values.
 /// </summary>
 /// <param name="rgbColor">A <see cref="System.Windows.Media.Color"/> to be converted.</param>
 /// <returns>A HsvColor structure with the specified values.</returns>
 public static HsvColor FromRgb(Color rgbColor)
 {
     return(ColorUtilities.RgbToHsv(rgbColor));
 }
コード例 #2
0
ファイル: HsvColor.cs プロジェクト: stonezhu870/WPFControls
 /// <summary>
 /// Gets the scRGB of this HsvColor structure.
 /// </summary>
 /// <returns>A <see cref="System.Windows.Media.Color"/> converted from this instance.</returns>
 public Color ToRgb()
 {
     return(ColorUtilities.HsvToRgb(this));
 }