/// <summary> /// Constructor. /// </summary> public PostProcessingControl() { InitializeComponent(); m_folderBrowserDlg = new FolderBrowserDialog(); m_colorBuilder = new TdseUtils.ColorBuilder(); // Load last-used settings string lastDir = Properties.Settings.Default.LastPostProcFolder; InputDir_TextBox.Text = string.IsNullOrEmpty(lastDir) ? "C:\\" : lastDir; try { string cropString = Properties.Settings.Default.CropSettings; if (!string.IsNullOrEmpty(cropString)) { string[] comps = cropString.Split(','); XCrop1_NUD.Value = int.Parse(comps[0]); XCrop2_NUD.Value = int.Parse(comps[1]); YCrop1_NUD.Value = int.Parse(comps[2]); YCrop2_NUD.Value = int.Parse(comps[3]); ZCrop1_NUD.Value = int.Parse(comps[4]); ZCrop2_NUD.Value = int.Parse(comps[5]); } } catch { } try { UpsampleFactor_NUD.Value = (decimal)Properties.Settings.Default.UpsampleFactor; } catch { } try { SmoothingFactor_NUD.Value = (decimal)Properties.Settings.Default.SmoothingFactor; } catch { } }
/// <summary> /// Constructor. /// </summary> public Colorer(string inputDir, TdseUtils.ColorBuilder colorBuilder) { m_inputDir = inputDir; m_colorBuilder = colorBuilder; }