예제 #1
0
        private void btnCreateLUT_Click(object sender, EventArgs e)
        {
            if (dlgCreateLUT.ShowDialog() == DialogResult.OK)
                {
                    Scripting.ScriptFilter filter = null;
                    if (chkUseScript.Enabled && chkUseScript.Checked)
                        filter = new Scripting.ScriptFilter(txtScript.Text);

                    try
                    {
                        referenceImage.CreateLUT(dlgCreateLUT.FileName,filter);
                    }
                    catch (System.Exception exception)
                    {
                        showError("There was a problem creating the LUT file: " + exception.Message);
                        return;
                    }
                }
        }
예제 #2
0
        private void btnCreateLUT_Click(object sender, EventArgs e)
        {
            if (dlgCreateLUT.ShowDialog() == DialogResult.OK)
            {
                Scripting.ScriptFilter filter = null;
                if (chkUseScript.Enabled && chkUseScript.Checked)
                {
                    filter = new Scripting.ScriptFilter(txtScript.Text);
                }

                try
                {
                    referenceImage.CreateLUT(dlgCreateLUT.FileName, filter);
                }
                catch (System.Exception exception)
                {
                    showError("There was a problem creating the LUT file: " + exception.Message);
                    return;
                }
            }
        }