| TesseractOcrEngineGetLastJobInternalBitmapDimensions Method |
Gets the dimensions of the internal image that was used by the OCR engine in the previous job.
Namespace: DevScope.Ocr.Tesseract.WindowsPhoneAssembly: DevScope.Ocr.Tesseract.WindowsPhone (in DevScope.Ocr.Tesseract.WindowsPhone.dll) Version: 255.255.255.255
Syntax public TesseractOcrImageSize GetLastJobInternalBitmapDimensions()
Public Function GetLastJobInternalBitmapDimensions As TesseractOcrImageSize
public:
virtual TesseractOcrImageSize^ GetLastJobInternalBitmapDimensions() sealed
Return Value
Type:
TesseractOcrImageSize
The
TesseractOcrImageSize instance, with the dimensions of the image.
Remarks
This is required if you need to instanciate a WritableBitmap for example and you need to fill in the image dimensions
Examples
This sample shows how to access the internal image used by the engine in the previous ocr job, after pre-processing.
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