public void Init() { UnitTypeV2 uType = CabinetType; _seamDataTopSelectedFlag = new int[uType.ModuleHeight, uType.ModuleWidth]; _seamDataRightSelectedFlag = new int[uType.ModuleHeight, uType.ModuleWidth]; _seamDataBottomSelectedFlag = new int[uType.ModuleHeight, uType.ModuleWidth]; _seamDataLeftSelectedFlag = new int[uType.ModuleHeight, uType.ModuleWidth]; }
void CreateBMPBuffer() { UnitTypeV2 utype = CabinetType; _bmpBuffer = new Bitmap(utype.GetSize().Width, utype.GetSize().Height); Graphics g = Graphics.FromImage(_bmpBuffer); g.Clear(Color.FromArgb(InterfaceData.Background, InterfaceData.Background, InterfaceData.Background)); g.Dispose(); g = null; GC.Collect(); }
//nType:0模组数据,1箱体数据 OperationResult ReadADCalibrationDataFormFolder(UnitTypeV2 cabinetSize, int nType, int devNum, string ip, string path) { OperationResult operationResult = null; if (nType == 0) { operationResult = ReadModulesCalibrationDataFromFolder(devNum, path, cabinetSize.ModuleWidth, cabinetSize.ModuleHeight, cabinetSize.ModulePixelWidth, cabinetSize.ModulePixelHeight); } else { operationResult = ReadCabinetCalibrationDataFromFolder(cabinetSize, devNum, path); } return(operationResult); }