private void setDefaultProfile(ref PictureProfile profile) { profile = new PictureProfile( defaultProfile.Gamma, defaultProfile.referenceWhite, defaultProfile.xR, defaultProfile.yR, defaultProfile.xG, defaultProfile.yG, defaultProfile.xB, defaultProfile.yB, defaultProfile.xW, defaultProfile.yW); }
private void sourceProfileCB_SelectedIndexChanged(object sender, EventArgs e) { ComboBox cb = (ComboBox)sender; if (cb == sourceProfileCB) { setSourceProfileInfo(cb.SelectedIndex); sourceProfile = profiles[cb.SelectedIndex]; } }
private void newProfileToolStripMenuItem_Click(object sender, EventArgs e) { NewProfileForm npf = new NewProfileForm(); npf.ShowDialog(); if (newProfile != null) { profiles.Add(newProfile); sourceProfileCB.Items.Add(newProfileName); targetProfileCB.Items.Add(newProfileName); newProfile = null; newProfileName = null; } }
private void createProfileButton_Click(object sender, EventArgs e) { PictureProfile.ReferenceWhite reference; PictureProfile pp = computeProfileFromSelectedItems(); if (sourceReferenceCB.SelectedIndex == 0) { reference = PictureProfile.ReferenceWhite.D50; } else { reference = PictureProfile.ReferenceWhite.D65; } pp.referenceWhite = reference; Form1.newProfile = pp; Form1.newProfileName = sourceNameTB.Text; Close(); }
private void initializePictureProfiles() { //sRGB PictureProfile pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D65, 0.64, 0.33, 0.3, 0.6, 0.15, 0.06, 0.3127, 0.3290 ); profiles.Add(pp); //Adobe RGB pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D65, 0.64, 0.33, 0.21, 0.71, 0.15, 0.06, 0.3127, 0.3290 ); profiles.Add(pp); //AppleRGB pp = new PictureProfile(1.8, PictureProfile.ReferenceWhite.D65, 0.625, 0.34, 0.28, 0.595, 0.155, 0.07, 0.3127, 0.3290 ); profiles.Add(pp); //Best RGB pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D50, 0.7347, 0.2653, 0.215, 0.775, 0.13, 0.035, 0.3457, 0.3585 ); profiles.Add(pp); //Beta RGB pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D50, 0.6888, 0.3112, 0.1986, 0.7551, 0.1265, 0.0352, 0.3457, 0.3585 ); profiles.Add(pp); //Bruce RGB pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D65, 0.64, 0.33, 0.28, 0.65, 0.15, 0.06, 0.3127, 0.3290 ); profiles.Add(pp); //ColorMatch RGB pp = new PictureProfile(1.8, PictureProfile.ReferenceWhite.D50, 0.63, 0.34, 0.295, 0.605, 0.15, 0.075, 0.3457, 0.3585 ); profiles.Add(pp); //PAL - SECAM RGB pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D65, 0.64, 0.33, 0.29, 0.6, 0.15, 0.06, 0.3127, 0.3290 ); profiles.Add(pp); //Wide Gamut RGB pp = new PictureProfile(2.2, PictureProfile.ReferenceWhite.D50, 0.735, 0.265, 0.115, 0.826, 0.157, 0.018, 0.3457, 0.3585 ); profiles.Add(pp); }