"景先生毕设|www.jxszl.com

C# CameraOperationCompletedEventArgs类代码示例

2023-12-29 17:39编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中CameraOperationCompletedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C#CameraOperationCompletedEventArgs类的具体用法?C#CameraOperationCompletedEventArgs怎么用?C#CameraOperationCompletedEventArgs使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:CameraInitialized /// ///Calledwhendevicecamerainitialized. /// ///Thesender. ///Theinstancecontainingtheeventdata. privatevoidCameraInitialized(objectsender,CameraOperationCompletedEventArgse) { if(e.Succeeded) { //Startscanprocessinseparatethread Deployment.Current.Dispatcher.BeginInvoke( ()=> { while(result==null) { varcameraBuffer=newWriteableBitmap( (int)camera.PreviewResolution.Width, (int)camera.PreviewResolution.Height); camera.GetPreviewBufferArgb32(cameraBuffer.Pixels); cameraBuffer.Invalidate(); reader.Decode(cameraBuffer); } }); } else { this.result=newBarcodeScannerTask.ScanResult(TaskResult.None); NavigationService.GoBack(); } }
原文链接:http://www.jxszl.com/biancheng/C/556655.html