| TesseractOcrEngineGetLastJobInternalBitmap Method (IBuffer) |
Fills a WriteableBitmap with the thresholded image used internally in the previous ocr job.
Namespace: DevScope.Ocr.Tesseract.WindowsPhoneAssembly: DevScope.Ocr.Tesseract.WindowsPhone (in DevScope.Ocr.Tesseract.WindowsPhone.dll) Version: 255.255.255.255
Syntax public void GetLastJobInternalBitmap(
IBuffer pixelsBuffer
)
Public Sub GetLastJobInternalBitmap (
pixelsBuffer As IBuffer
)
public:
virtual void GetLastJobInternalBitmap(
[InAttribute] IBuffer^ pixelsBuffer
) sealed
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