Interface HighResImageWrapper

  • All Superinterfaces:

    public interface HighResImageWrapper
    extends android.os.Parcelable
    Wrapper around Image used for high resolution images.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  HighResImageWrapper.Factory  
      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      • Fields inherited from interface android.os.Parcelable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Disposes wrapped image.
      Image getImage()
      Returns wrapped image.
      void saveToFile​( file)
      Saves image to given file.
      • Methods inherited from interface android.os.Parcelable

        describeContents, writeToParcel
    • Method Detail

      • saveToFile

        void saveToFile​(@NonNull
        Saves image to given file. Depending on the image format, using this method might be much faster than converting it to bitmap first.
        file - file to save image to
        Throws: - thrown if writing to file fails
      • getImage

        Image getImage()
        Returns wrapped image.
        wrapped image
      • dispose

        void dispose()
        Disposes wrapped image. You have to call this when you no longer need the image. Disposed images can't be used anymore and will throw an exception.