CREATOR
Functions
Creates ImageRef from serialized string representation with upgrading serialized reference to a strong one
Creates ImageRef from a bitmap.
Creates ImageRef from encoded buffer, e.g. from jpeg.
Creates ImageRef from the given input stream of encoded bytes
Creates ImageRef from the path to an image.
Creates ImageRef from yuv_420_888 image
By default, ImageRef supports decoding JPEG and PNG images. To add support for more image formats, e.g. HEIC, decoders for which are provided by Android Platform this function should be called once at the application startup.
Releases all alive images despite any existing references.
Sets directory in which hibernated images are stored. If null is passed, then hibernated images are stored in compressed format in memory. Can be set at most once, best when the application is initialized but in any case before any ImageRef is created.
Sets the quality of JPEG compression used to encode images when hibernating. The default is 80.
Sets storageCryptingProvider that is used when an image is read/written from/to disk. The provider is used both when images are hibernated and when they are saved/loaded from disk with saveImage/fromPath. Can be set at most once, best when the application is initialized but in any case before any ImageRef is created.