public void CaptureCaptureFinishedEventArgsSuccess() { tlog.Debug(tag, $"CaptureCaptureFinishedEventArgsSuccess START"); var testingTarget = new CaptureFinishedEventArgs(); Assert.IsNotNull(testingTarget, "Can't create success object CaptureFinishedEventArgs"); Assert.IsInstanceOf <CaptureFinishedEventArgs>(testingTarget, "Should be an instance of CaptureFinishedEventArgs type."); Assert.AreEqual(false, testingTarget.Success, "Should be equal!"); testingTarget.Success = true; Assert.AreEqual(true, testingTarget.Success, "Should be equal!"); tlog.Debug(tag, $"CaptureCaptureFinishedEventArgsSuccess END (OK)"); }
private void onCaptureFinished(object sender, CaptureFinishedEventArgs e) { log.Debug(tag, $"onCaptureFinished() statue={e.Success} \n"); if (sender is Capture) { log.Debug(tag, $"sender is Capture \n"); var url = capture.GenerateUrl(); capturedImage = new ImageView(url); log.Debug(tag, $"url={url} \n"); capturedImage.Size = new Size(300, 300); capturedImage.Position = new Position(10, 10); root.Add(capturedImage); done = false; } }
private void onCaptureFinished(object sender, CaptureFinishedEventArgs e) { log.Debug(tag, $"onCaptureFinished() statue={e.Success} \n"); if (sender is Capture) { log.Debug(tag, $"sender is Capture \n"); var uri = capture.GetNativeImageSource().Uri; capturedImage = new ImageView(uri.AbsoluteUri); log.Debug(tag, $"url={uri} \n"); capturedImage.Size = new Size(510, 510); capturedImage.Position = new Position(10, 10); root.Add(capturedImage); done = false; } }
private void onCaptureFinished(object sender, CaptureFinishedEventArgs e) { log.Debug(tag, $"onCaptureFinished() statue={e.Success} \n"); if (sender is Capture) { log.Debug(tag, $"sender is Capture \n"); PixelBuffer pixelBuffer = capture.GetCapturedBuffer(); PixelData pixelData = PixelBuffer.Convert(pixelBuffer); var url = pixelData.Url;//capture.GetNativeImageSource().Url; capturedImage = new ImageView(url); log.Debug(tag, $"url={url} \n"); capturedImage.Size = new Size(510, 510); capturedImage.Position = new Position(10, 10); root.Add(capturedImage); done = false; } }
private void OnFinishedEvent(object sender, CaptureFinishedEventArgs e) { // Do not implementation }