Optional Readonly uniqueReturns the stored image as base64.
Optional options: EncodeImageOptionsSaves the stored image with the given options. Returns true if the operation was successful, false otherwise. If uniqueId is not set or the image is already released, an exception will be thrown.
Optional options: SaveImageOptionsConverts the Image Ref to Json representation or throws an exception if serialization fails.
Static deserializeThis method is used to deserialize an ImageRef from a serialized representation with a uniqueId. If the uniqueId is not present, it throws an InvalidImageRefError.
Optional Readonly uniqueReturns the stored image as base64.
Optional options: EncodeImageOptionsSaves the stored image with the given options. Returns true if the operation was successful, false otherwise. If uniqueId is not set or the image is already released, an exception will be thrown.
Optional options: SaveImageOptionsConverts the Image Ref to Json representation or throws an exception if serialization fails.
Static fromOptional Readonly uniqueReturns the stored image as base64.
Optional options: EncodeImageOptionsSaves the stored image with the given options. Returns true if the operation was successful, false otherwise. If uniqueId is not set or the image is already released, an exception will be thrown.
Optional options: SaveImageOptionsConverts the Image Ref to Json representation or throws an exception if serialization fails.
Static fromCreates ImageRef with uniqueId from base64 encoded buffer, e.g. from jpeg.
Optional options: BufferImageLoadOptionsStatic fromCreates ImageRef with uniqueId from the file uri to an image.
Optional options: PathImageLoadOptionsStatic makeReturns a snapshot of all alive ImageRefs. The snapshot contains a list of ImageRefs with information such as in-memory size.
Static release
Releases native resources stored by the ref. If two different ImageRef objects have the same uniqueId both of them become cleared. If uniqueId is not set or the image is already released, an exception will be thrown.