示例#1
0
        private void GetDownRGB(double x, double y)
        {
            var frame = downVideoCapture.GetFrame();
            var row   = SelectedRow(dFilter_dataGridView);

            if (row != -1)
            {
                Color color = frame.GetPixel((int)x, (int)y);
                currentDownBinding[row].R = color.R;
                currentDownBinding[row].G = color.G;
                currentDownBinding[row].B = color.B;
            }
            downClickDelegate = oldDownDelegate;
            upClickDelegate   = oldUpDelegate;
        }
示例#2
0
        public Bitmap GetMeasurementFrame()
        {
            Global.DoBackgroundWork();
            var frame = videoCapture.GetFrame();

            frame = ProcessFrame(frame);
            return(frame);
        }
示例#3
0
        private void GetDownRGB(double x, double y, int rawx, int rawy)
        {
            var frame = downVideoCapture.GetFrame();
            var o     = (AForgeFunction)SelectedRowObject(dFilter_dataGridView);

            if (o != null)
            {
                Color color = frame.GetPixel(rawx, rawy);
                o.SetColor(color);
            }
            downClickDelegate = oldDownDelegate;
            upClickDelegate   = oldUpDelegate;
        }