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

Warning

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

Syntax

public IRandomAccessStream CapturedImage { get; }

Property Value

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);
…
}

For a more complete example, see How to: Extract text position data from an OCR result.

Requirements

Minimum Supported Client

Windows 8.1

Required Extensions

Bing OCR

Namespace

Bing.Ocr