/// <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)); }
/// <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)); }