public VonKriesChromaticAdaptation(IColorConversion<XYZColor, LMSColor> conversionToLMS, IColorConversion<LMSColor, XYZColor> conversionToXYZ) { if (conversionToLMS == null) throw new ArgumentNullException("conversionToLMS"); if (conversionToXYZ == null) throw new ArgumentNullException("conversionToXYZ"); _conversionToLMS = conversionToLMS; _conversionToXYZ = conversionToXYZ; }
public VonKriesChromaticAdaptation(IColorConversion <XYZColor, LMSColor> conversionToLMS, IColorConversion <LMSColor, XYZColor> conversionToXYZ) { if (conversionToLMS == null) { throw new ArgumentNullException("conversionToLMS"); } if (conversionToXYZ == null) { throw new ArgumentNullException("conversionToXYZ"); } _conversionToLMS = conversionToLMS; _conversionToXYZ = conversionToXYZ; }
/// <summary> /// Constructs von Kries chromatic adaptation using given converters /// </summary> public VonKriesChromaticAdaptation(IColorConversion <XYZColor, LMSColor> conversionToLMS, IColorConversion <LMSColor, XYZColor> conversionToXYZ) { _conversionToLMS = conversionToLMS ?? throw new ArgumentNullException(nameof(conversionToLMS)); _conversionToXYZ = conversionToXYZ ?? throw new ArgumentNullException(nameof(conversionToXYZ)); }