Exemple #1
0
        private void btnLoadLocalFile_Click(object sender, EventArgs e)
        {
            SaveFilePath = CapturePub.SaveDFPath + "\\setup" + DateTime.Now.ToString("yyyy.MM.dd.hhmmss");
            CaptureBase localCapture = new CaptureLocalFile();

            localCapture.CaptureImageData();
            RefreshDataDisplay(localCapture.imgList, false, 0);
        }
Exemple #2
0
        private void btnLoadLocalFile_Click(object sender, EventArgs e)
        {
            this.Refresh();
            CaptureBase bakCapture = new CaptureLocalFile();

            //bakCapture.RefreshHostHandle(this.Handle);
            bakCapture.CaptureImageData();
            RefreshDataDisplay(bakCapture.imgList, false, 0);
            //if (bakCapture.imgList.Count > 0)
            //{
            //    imgROI = bakCapture.imgList[0];
            //    his.ComputeHistogram(imgROI.ImageData);
            //    imgROI.GenerateBMP(his.LUT);
            //    imgShow.InitImageData(imgROI, his);
            //    labelMedianValue.Text = "Ave:" + (int)his.AverageValue;
            //    labelWL.Text = "L=" + his.windowCenter + ",W=" + his.windowWidth;
            //}
        }