public void OnPrinterPropertyChange(SPrinterProperty sp) { m_rsPrinterPropery = sp; m_bSpectra = (sp.ePrinterHead == PrinterHeadEnum.Spectra_S_128); m_bKonic512 = SPrinterProperty.IsKonica512(sp.ePrinterHead); if (CheckComponentChange(sp)) { m_HeadNum = sp.nHeadNum; if (m_bKonic512) { m_HeadNum /= sp.nHeadNumPerColor; if (sp.fHeadAngle != 0) { this.labelHeadAngle.Visible = this.m_numHeadAngle.Visible = this.m_numHeadAngle.Enabled = true; } } //m_HeadNum = MAX_CHANAL; m_StartHeadIndex = 0; m_pMap = new byte[MAX_CHANAL]; //(byte[])sp.pElectricMap.Clone(); for (int i = 0; i < MAX_CHANAL; i++) { #if false m_pMap[i] = (byte)(MAX_CHANAL / nmap_input - 1 - m_pMap[i]); //(byte)(i*3 + nStartIndex); #else m_pMap[i] = (byte)i; #endif } CreateComponent(); LayoutComponent(); AppendComponent(); } }
public void OnPrinterPropertyChange(SPrinterProperty sp) { m_rsPrinterPropery = sp; #if true uint uiHtype = 0; CoreInterface.GetUIHeadType(ref uiHtype); m_bKonic512 = (uiHtype & 0x01) != 0; m_bXaar382 = (uiHtype & 0x02) != 0; m_bSpectra = (uiHtype & 0x04) != 0; m_bPolaris = (uiHtype & 0x08) != 0; m_bPolaris_V5_8 = (uiHtype & 0x10) != 0;; m_bExcept = (uiHtype & 0x20) != 0; m_bPolaris_V7_16 = (uiHtype & 0x40) != 0; m_bKonic1024i_Gray = (uiHtype & 0x80) != 0; m_bSpectra_SG1024_Gray = (uiHtype & 0x100) != 0; m_bXaar501 = (uiHtype & 0x200) != 0;//pan dan Xaar501? #else m_bSpectra = SPrinterProperty.IsSpectra(sp.ePrinterHead); m_bKonic512 = SPrinterProperty.IsKonica512(sp.ePrinterHead); m_bXaar382 = (sp.ePrinterHead == PrinterHeadEnum.Xaar_Proton382_35pl || sp.ePrinterHead == PrinterHeadEnum.Xaar_Proton382_60pl); m_bPolaris = SPrinterProperty.IsPolaris(sp.ePrinterHead); // m_bPolaris_V5_8 = SPrinterProperty.IsPolaris(sp.ePrinterHead); SBoardInfo sBoardInfo = new SBoardInfo(); if (CoreInterface.GetBoardInfo(0, ref sBoardInfo) != 0) { m_bExcept = (sBoardInfo.m_nBoardManufatureID == 0xB || sBoardInfo.m_nBoardManufatureID == 0x8b); } #endif m_bVerArrangement = ((sp.bSupportBit1 & 2) != 0); m_bMirrorArrangement = m_rsPrinterPropery.IsMirrorArrangement(); m_b1head2color = (m_rsPrinterPropery.nOneHeadDivider == 2); m_Konic512_1head2color = m_b1head2color && m_bKonic512; m_bPolaris_V7_16_Emerald = m_bPolaris_V7_16 && (sp.ePrinterHead == PrinterHeadEnum.Spectra_Emerald_10pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_Emerald_30pl); m_bPolaris_V7_16_Polaris = m_bPolaris_V7_16 && (sp.ePrinterHead == PrinterHeadEnum.Spectra_PolarisColor4_15pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_PolarisColor4_35pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_PolarisColor4_80pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_Polaris_15pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_Polaris_35pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_Polaris_80pl); m_bPolaris_V5_8_Emerald = m_bPolaris_V5_8 && (sp.ePrinterHead == PrinterHeadEnum.Spectra_Emerald_10pl || sp.ePrinterHead == PrinterHeadEnum.Spectra_Emerald_30pl); m_bRicoHead = sp.ePrinterHead == PrinterHeadEnum.RICOH_GEN4_7pl || sp.ePrinterHead == PrinterHeadEnum.RICOH_GEN4L_15pl || sp.ePrinterHead == PrinterHeadEnum.RICOH_GEN4P_7pl; m_bKyocera = SPrinterProperty.IsKyocera(sp.ePrinterHead); m_bKonic1800i = SPrinterProperty.IsKonic1800i(sp.ePrinterHead); m_bKonicM600 = sp.ePrinterHead == PrinterHeadEnum.Konica_M600SH_2C; m_bGma990 = sp.ePrinterHead == PrinterHeadEnum.Fujifilm_GMA9905300_5pl || sp.ePrinterHead == PrinterHeadEnum.Fujifilm_GMA3305300_5pl; m_HeadNum = NewLayoutFun.GetHeadNum(); if (m_bKonic1024i_Gray) { m_TempNum = m_HeadNum / 2; } else if (m_bSpectra_SG1024_Gray) { if (!CoreInterface.IsSG1024_AS_8_HEAD()) { if (m_b1head2color) { m_TempNum /= 2; } } } m_StartHeadIndex = 0; //int imax = Math.Max(m_HeadNum, m_TempNum); m_pMap = new byte[m_HeadNum]; for (int i = 0; i < m_HeadNum; i++) { m_pMap[i] = (byte)i; } if (GetRealTimeInfo2()) { InitHeadTextList(); InitChart(); InitCheckedListBox(); } }