FrameCapturedEventArgs.CapturedImage Property

 

Deprecated. The CapturedImage property exposes the stream that contains the captured image in jpeg format when The Bing Optical Character Recognition (OCR) Control captures an image and raises the FrameCaptured Event.

Published date: March 4, 2014

System_CAPS_warningWarning

The Bing OCR Control is deprecated as of March 12, 2014.

public IRandomAccessStream CapturedImage { get; }

Type: Windows.Storage.Streams.IRandomAccessStream

An IRandomAccessStream that contains the captured image in jpeg format.

Example

The following example loads an empty BitmapImage control with the contents of the CapturedImage property.

void OCR_FrameCaptured(object sender, FrameCapturedEventArgs e)
{
    var bmp = new BitmapImage();
    bmp.SetSource(e.CapturedImage);
…
}

Requirements

Minimum Supported Client

Windows 8.1

Required Extensions

Bing OCR

Namespace

Bing.Ocr

Show: