Example #1
0
        public Form1()
        {
            InitializeComponent();


            //var wPo = new lcmsCIEXYZ(0.3127, 0.3290, 0.3583); //WhitePoint using XYZ
            //var wP = new lcmsCIExyY();
            //lcmsWrapper.XYZ2xyY(wPo, wP); //Converts whitepoint from XYZ to xyY

            _flag = lcmsFlags.EMPTY;

            //ProfileFiles.Add(ICCProfilePath + "Kodak.icm");
            //ProfileFiles.Add(ICCProfilePath + "sRGB.icm");
            //pRGB = lcmsWrapper.OpenProfileFromFile(ICCProfilePath + "Kodak.icm", "r");
            //pRGB = lcmsWrapper.OpenProfileFromFile(ICCProfilePath + "sRGB.icm", "r");

            _intent          = lcmsIntents.PERCEPTUAL;
            _AdaptationState = 1d;
            _FileName        = "";

            pRGB = lcmsProfile.Create_sRGBProfile();
            pLab = lcmsProfile.CreateLab4Profile(lcmsWhitePoint.ICC_D50());              //D50

            CreateRGBtoLABTransforms();
        }
Example #2
0
        private void cbxUseInput_CheckedChanged(object sender, EventArgs e)
        {
            if (pRGB != null)
            {
                pRGB.Close();
            }
            if (pLab != null)
            {
                pLab.Close();
            }

            pRGB = (cbxUseInput.Checked) ? lcmsProfile.OpenProfileFromFile(ProfileFilesIn[cbxInput.SelectedIndex]) : lcmsProfile.Create_sRGBProfile();
            pLab = (cbxTest.Checked) ? lcmsProfile.CreateLab4Profile(pRGB.WhitePoint) : lcmsProfile.CreateLab4Profile(lcmsWhitePoint.ICC_D50());


            CreateRGBtoLABTransforms();

            DoTestLabMouse();
        }