decodeWithState method

Result decodeWithState(
  1. BinaryBitmap image
)

Decode an image using the state set up by calling setHints() previously. Continuous scan clients will get a large speed increase by using this instead of decode().

@param image The pixel data to decode @return The contents of the image @throws NotFoundException Any errors which occurred

Implementation

Result decodeWithState(BinaryBitmap image) {
  // Make sure to set up the default state so we don't crash
  if (_readers == null) {
    setHints(null);
  }
  return _decodeInternal(image);
}