Click or drag to resize
TesseractOcrEngineGetLastJobInternalBitmap Method (IBuffer)
Fills a WriteableBitmap with the thresholded image used internally in the previous ocr job.

Namespace: DevScope.Ocr.Tesseract.WindowsPhone
Assembly: DevScope.Ocr.Tesseract.WindowsPhone (in DevScope.Ocr.Tesseract.WindowsPhone.dll) Version: 255.255.255.255
Syntax
public void GetLastJobInternalBitmap(
	IBuffer pixelsBuffer
)

Parameters

pixelsBuffer
Type: IBuffer
Direct buffer for the pixels of the WriteableBitmap to fill.
Examples
This sample shows how to access the internal image used by in the previous ocr job and save it in a WriteableBitmap.
private WriteableBitmap GetLastJobBitmapUsedByOcr(TesseractOcrEngine ocrEngine, TesseractOcrJobResponse jobResponse)
{
    var wbsize = ocrEngine.GetLastJobInternalBitmapDimensions();
    var wb = new WriteableBitmap(wbsize.Width, wbsize.Height);
    ocrEngine.GetLastJobInternalBitmap(wb.Pixels);
    return wb;
}
See Also