public static ProcessedImageWindow CreateProcessedImageForm(Bitmap bitmap) { ProcessedImageWindow form = new ProcessedImageWindow(); form.SetOriginalBitmap(bitmap); form.SetProcessedBitmap(bitmap); return(form); }
private void PhaseSpectrumButton_Click(object sender, EventArgs e) { Bitmap resultBitmap = Effect.GetSpectrumBitmap(_processedComplexData, "phase"); ProcessedImageWindow form = FormFactory.CreateProcessedImageForm(resultBitmap); form.SetProcessedBitmap(resultBitmap); form.SetType("fourierPhaseSpectrum"); form.Show(); }