/// <summary> /// Creates a new instance of a color /// </summary> /// <param name="profile">The ICC profile for this color</param> protected Color(ICC profile) { if (ICC_Converter.IsSameSpace(Model, profile.Header.DataColorspace)) { IsPCScolor = false; } else if (ICC_Converter.IsSameSpace(Model, profile.Header.PCS)) { IsPCScolor = true; } else { throw new ArgumentException("Profile device space or PCS has to be the same as this color"); } ICC_Profile = profile; ColorValues = new double[ChannelCount]; }
/// <summary> /// Creates a new instance of a color converter class /// </summary> public ColorConverter() { if (!IsInit) Init(); ICCconverter = new ICC_Converter(); }