public static unsafe void MainWorker() { if (Settings.Test_Run) { int w = Settings.Test_Width; int h = Settings.Test_Height; Helpers.Mode = Helpers.Modes.TriBuddha; FindLimit(Settings.Test_Source, w, h); BitBits bit = new BitBits(w, h, true); ComplexData data = ComplexData.LoadFile(Settings.Test_Source, w, h); CopyRect48(new Rectangle(0, 0, w, h), new Rectangle(0, 0, w, h), data, bit); bit.Save(Settings.Test_Source + "_test_.png"); Image image = Image.FromFile(Settings.Test_Source + "_test_.png"); PreviewForm form = new PreviewForm(null, (Bitmap)image); Application.Run(form); } if (Settings.Split_Run) { Helpers.SplitImage(); } if (Settings.Main_Action_DrawBuddha) { using (var indent = MyConsole.Indent("Buddhabrot")) { Helpers.Mode = Helpers.Modes.Buddha; FindLimit(null, 8192, 8192); MainWorkerInternal(); } } if (Settings.Main_Action_DrawTriBuddha) { using (var indent = MyConsole.Indent("TriBuddha")) { Helpers.Mode = Helpers.Modes.TriBuddha; FindLimit(null, 8192, 8192); MainWorkerInternal(); } } if (Settings.Main_Action_DrawMandel) { using (var indent = MyConsole.Indent("Mandelbrot")) { Helpers.Mode = Helpers.Modes.Mandel; MainWorkerInternal(); } } }
public static void DebugShowForm(string file) { PreviewForm form = new PreviewForm(null, (Bitmap)Image.FromFile(file)); form.ShowDialog(); }