private void button_Test_DP213CMD_Class_Click(object sender, EventArgs e) { //Verify OK ChannelWinformAPIFactory channelAPIFactory = new ChannelWinformAPIFactory(VendorForm.GetInstance().GetVendor()); const int ch = 0; int height = Convert.ToInt32(textBox_Full_Height.Text); int width = Convert.ToInt32(textBox_Full_Width.Text); Channel_API[ch] = channelAPIFactory.GetIBusinessAPI(richTextBoxes[ch], height, width); DP213CMD cmd = new DP213CMD(Channel_API[ch], ch); cmd.SendGammaSetApplyCMD(Gamma_Set.Set1); cmd.SendGammaSetApplyCMD(Gamma_Set.Set2); cmd.SendGammaSetApplyCMD(Gamma_Set.Set3); cmd.SendGammaSetApplyCMD(Gamma_Set.Set4); cmd.SendGammaSetApplyCMD(Gamma_Set.Set5); cmd.SendGammaSetApplyCMD(Gamma_Set.Set6); cmd.DBV_Setting("FFF"); cmd.DBV_Setting("DDD"); cmd.DBV_Setting("ABC"); if (ocparams[0] == null) { ocparams[0] = new DP213_OCParameters(Channel_API[0], 0, richTextBoxes[ch]); } cmd.Measure(ocparams[0], OC_Mode.Mode1, band: 0, gray: 0); }
protected void SingleBand_RGB_Compensation(OC_Mode mode, int band) { cmd.DBV_Setting(ocparam.GetDBV(band).ToString("X3")); for (int gray = 0; gray < DP213_Static.Max_Gray_Amount && vars.Optic_Compensation_Stop == false; gray++) { if (IsNotSkipTarget(band, gray)) { RGBSubCompensation(mode, band, gray); } else { Set_and_Send_Gamma_If_OC_Skip(mode, band, gray); } } }
private void Black_OC_Initalize(int band) { cmd.DBV_Setting(ocparam.GetDBV(band).ToString("X3")); api.DisplayMonoPattern(new byte[] { 0, 0, 0 }, channel_num); Set_and_Send_AM0(DP213OCSet.Get_BlackCompensation_OCMode(), band, new RGB(0)); Thread.Sleep(300); }
private void Mode123_Gray_OC(int band) { cmd.DBV_Setting(ocparam.GetDBV(band).ToString("X3")); for (int gray = 0; gray < DP213_Static.Max_Gray_Amount && vars.Optic_Compensation_Stop == false; gray++) { if (IsNotSkipTarget(band, gray)) { SubMode123Compensation(band, gray); } else { Set_and_Send_Gamma_If_OC_Skip(band, gray); } } Ifneeded_CopyAndSend_Mode123toMode456(band); }
protected void Band_Gray255_RGB_Compensation(OC_Mode mode, int band) { cmd.DBV_Setting(ocparam.GetDBV(band).ToString("X3")); RGBSubCompensation(mode, band, gray: 0); }