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; }
public Bitmap GetMeasurementFrame() { Global.DoBackgroundWork(); var frame = videoCapture.GetFrame(); frame = ProcessFrame(frame); return(frame); }
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; }