Optional
Readonly
uniqueReturns the stored image as base64.
Optional
options: EncodeImageOptionsSaves the stored image with the given options. 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
Static
FromOptional
Readonly
uniqueStatic
deserializeOptional
Readonly
uniqueStatic
fromCreates ImageRef with uniqueId from base64 encoded buffer, e.g. from jpeg.
Optional
options: BufferImageLoadOptionsStatic
fromCreates ImageRef with uniqueId from the path 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.