/// <summary> /// Removes a conversion path from the <see cref="ConversionPaths"/> list /// </summary> /// <param name="ca">The chromatic adaption method to remove</param> /// <returns>True if the chromatic adaption method was found and removed, false otherwise</returns> public static bool RemoveChromaticAdaption(ChromaticAdaption ca) { if (ca == null) { throw new ArgumentNullException(nameof(ca)); } return(_ChromaticAdaptions.Remove(ca)); }
/// <summary> /// Compares this chromatic adaption method with another for their equality of the color type /// </summary> /// <param name="obj">The color to compare to</param> /// <returns>True if they are the same, false otherwise</returns> public override bool Equals(object obj) { ChromaticAdaption c = obj as ChromaticAdaption; if ((object)c == null) { return(false); } return(c == this); }
/// <summary> /// Adds a conversion path to the <see cref="ConversionPaths"/> list /// </summary> /// <param name="ca">The chromatic adaption method to add</param> public static void AddChromaticAdaption(ChromaticAdaption ca) { if (ca == null) { throw new ArgumentNullException(nameof(ca)); } if (!_ChromaticAdaptions.Contains(ca)) { _ChromaticAdaptions.Add(ca); } }