Click or drag to resize
TesseractOcrEngineGetLastJobInternalBitmap Method (Int32)
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(
	int[] pixelsBuffer
)

Parameters

pixelsBuffer
Type: SystemInt32
Array of the WriteableBitmap pixels buffer in BGRA format.
Examples
This sample shows how to access the internal image used by in the previous ocr job.
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