/// <summary> /// Show image. /// </summary> /// <param name="image"> /// Image to show. /// </param> public void ShowImage(FloatMatrix image) { if (_imgForm == null || _imgForm.IsClosed) _imgForm = ImageForm.ShowImage(image); else _imgForm.SetImage(image); }
/// <summary> /// Creates new <see cref="ImageForm"/> to show specified image. Form use another thread, /// so program is not blocked. /// </summary> /// <param name="image"></param> /// <returns></returns> public static ImageForm ShowImage(FloatMatrix image) { ImageForm form = new ImageForm(image); Thread thread = new Thread(new ThreadStart(form.ThreadFunction)); thread.Start(); return form; }