private void TsGenerateLayer_Click(object sender, EventArgs e) { if (selectedScene != null && MainForm.Project != null) { TTToolSettings tTToolSettings = new TTToolSettings(); tTToolSettings.DPI = selectedScene.ResolutionDPI; var res = MessageBox.Show(this, "Generate Oid Pixel by Pixel, takes ~2min", "", MessageBoxButtons.YesNoCancel); if (res == DialogResult.Yes) { MaskPicture.CreateImage(MainForm.Project, selectedScene, tTToolSettings, true); } else if (res == DialogResult.No) { MaskPicture.CreateImage(MainForm.Project, selectedScene, tTToolSettings, false); } } }
private void TsGenerateLayer_Click(object sender, EventArgs e) { if (selectedScene != null && MainForm.Project != null) { TTToolSettings tTToolSettings = new TTToolSettings(); tTToolSettings.DPI = selectedScene.ResolutionDPI; using (var f = new frmImageExport()) { if (f.ShowDialog() == DialogResult.OK) { Cursor.Current = Cursors.WaitCursor; MaskPicture.ExportTTImages(MainForm.Project, selectedScene, tTToolSettings, f.Highquality, f.ExportCanvasImage, f.ExportMask, f.enumNeutral); Cursor.Current = Cursors.Default; } } } }