Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        private void cbxIntent_SelectedIndexChanged(object sender, EventArgs e)
        {
            var intent = (lcmsIntents)cbxIntent.SelectedItem;

            if (intent != _intent)
            {
                _intent = intent;

                CreateRGBtoLABTransforms();

                DoTestLabMouse();
                if (_intent == lcmsIntents.ABSOLUTE_COLORIMETRIC && cbxAdaptationState.SelectedIndex == 0)
                {
                    cbxAdaptationState.SelectedIndex = 1;
                }
            }
        }