decode method

bool decode()

Implementation

bool decode() {
  if (!isValid || _input == null) {
    return false;
  }

  // Color Mode Data Block:
  // Indexed and duotone images have palette data in colorData...
  _readColorModeData();

  // Image Resource Block:
  // Image resources are used to store non-pixel data associated with images,
  // such as pen tool paths.
  _readImageResources();

  _readLayerAndMaskData();

  _readMergeImageData();

  _input = null;
  //_colorData = null;
  _imageResourceData = null;
  _layerAndMaskData = null;
  _imageData = null;

  return true;
}