Interface HighResImageWrapper
-
- All Superinterfaces:
android.os.Parcelable
public interface HighResImageWrapper extends android.os.ParcelableWrapper aroundImageused for high resolution images.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHighResImageWrapper.Factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Disposes wrapped image.ImagegetImage()Returns wrapped image.voidsaveToFile(java.io.File file)Saves image to given file.
-
-
-
Method Detail
-
saveToFile
void saveToFile(@NonNull java.io.File file) throws java.io.IOExceptionSaves image to given file. Depending on the image format, using this method might be much faster than converting it to bitmap first.- Parameters:
file- file to save image to- Throws:
java.io.IOException- thrown if writing to file fails
-
getImage
@NonNull Image getImage()
Returns wrapped image.- Returns:
- 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.
-
-