getBounds method

Rectangle getBounds()

Gets the exact bounds of the text in the image.

return Exact bounds of the text in the image. throws DocumentException An error has occurred during Document Library execution.

Implementation

Rectangle getBounds() {
  Pointer<id3DocumentRectangle> pBounds = calloc();
  var err = documentSDK.id3DocumentHologramAuthenticationResult_GetBounds(_pHandle.value, pBounds);
  if (err != DocumentError.success.value) {
  	calloc.free(pBounds);
  	throw DocumentException(err);
  }
  return Rectangle(pBounds);
}