示例#1
0
        /// <summary>
        /// Resets all parameters that concern the HALCON window display
        /// setup to their initial values and clears the ROI list.
        /// </summary>
        protected internal void resetAll()
        {
            ImgRow1 = 0;
            ImgCol1 = 0;
            ImgRow2 = imageHeight;
            ImgCol2 = imageWidth;

            zoomWndFactor = (double)imageWidth / viewPort.Width;

            System.Drawing.Rectangle rect = viewPort.ImagePart;
            rect.X             = (int)ImgCol1;
            rect.Y             = (int)ImgRow1;
            rect.Width         = (int)imageWidth;
            rect.Height        = (int)imageHeight;
            viewPort.ImagePart = rect;


            if (roiManager != null)
            {
                roiManager.reset();
            }
        }