Ejemplo n.º 1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_toolGroupEdit != null)
                {
                    _toolGroupEdit.Subject = null;
                    _toolGroupEdit         = null;
                }
                _cognexJob = null;

                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }
 /// <summary>
 /// Convert the image produced by the camera to a Bitmap
 /// </summary>
 /// <param name="oImage"></param>
 /// <returns></returns>
 public override Bitmap ImageToBitmap(object oImage)
 {
     return(CognexJob7.CogImageToBitmap(oImage));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="cognexVisionJob"></param>
 public CognexJobEditForm(CognexJob7 cognexJob)
 {
     _cognexJob = cognexJob;
     InitializeComponent();
 }