public DetectedQRCode DecodeQRCodes(SoftwareBitmap bitmap) { this.result = barcodeReader.Decode(bitmap); DetectedQRCode qRCode = null; if (this.result != null) { qrCodeCoordinates = new QRCodeCoordinates(this.result.ResultPoints); qRCode = qrCodeCoordinates.GetDetectedQRCode(); qRCode.QRCodeResult = this.result; } return(qRCode); }
public DetectedQRCode GetDetectedQRCode() { DetectedQRCode detectedQRCode = new DetectedQRCode(); BitmapBounds bounds = new BitmapBounds() { X = (uint)this.X1, Y = (uint)this.Y1, Width = (uint)Math.Abs(X2 - X1), Height = (uint)Math.Abs(Y2 - Y1) }; detectedQRCode.QRCodeBox = bounds; return(detectedQRCode); }