public WebCamWidget() { if (camera.IsNewImageReady()) { camera.TakeSnapShot(); } AnchorAll(); }
public override void OnDraw(Graphics2D graphics2D) { base.OnDraw(graphics2D); if (camera.IsNewImageReady()) { } graphics2D.Render(camera.CurrentImage, 40, 40); Invalidate(); }