Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
        /// <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;
        }