Click or drag to resize

OcrPageIteratorGetBoundingBox Method

Gets bounding rectangle of the current object at the given level.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public Rectangle GetBoundingBox(
	PageIteratorLevel level
)

Parameters

level  PageIteratorLevel
Type of element of the page hierarchy.

Return Value

Rectangle
Returns the bounding rectangle, or throw ObjectNotFoundException if there is no such object at the current position.
Exceptions
ExceptionCondition
ObjectNotFoundExceptionThrown if there is no such object at the current position
Remarks
The returned bounding box is guaranteed to match the size and position of the image returned by GetBinaryImage(PageIteratorLevel), but may clip foreground pixels from a grey image.The padding argument to GetImage(PageIteratorLevel, Int32, OcrPix, Int32, Int32) can be used to expand the image to include more foreground pixels. See GetImage(PageIteratorLevel, Int32, OcrPix, Int32, Int32) for details.
See Also