Returns the stored image as base64.
Optionaloptions: EncodeImageOptionsEncode image.
Compresses ImageRef and stores it either on disk or in memory according to global settings. If uniqueId is not set or the image is already released, an exception will be thrown.
Information about stored image as reference. If uniqueId is not set or the image is already released, an exception will be thrown.
Releases strong reference to the image. If uniqueId to the image is not set, an exception will be thrown.
Saves the stored image with the given options. If uniqueId is not set or the image is already released, an exception will be thrown.
Optionaloptions: SaveImageOptionsConverts the Image Ref to Json representation
StaticdeserializeOptionalbuffer?: stringOptionalclear?: () => Promise<void>OptionalencodeImage?: (options?: EncodeImageOptions) => Promise<string | null>OptionalencodeInPlace?: () => Promise<void>Optionalhibernate?: () => Promise<void>Optionalinfo?: () => Promise<ImageInfo | null>OptionalisRetained?: () => booleanOptionalrelease?: () => voidOptionalretain?: () => voidOptionalsaveImage?: (path: string, options?: SaveImageOptions) => Promise<boolean>Optionalserialize?: (Optional ReadonlyuniqueId?: stringStaticfromOptionalbuffer?: stringOptionalclear?: () => Promise<void>OptionalencodeImage?: (options?: EncodeImageOptions) => Promise<string | null>OptionalencodeInPlace?: () => Promise<void>Optionalhibernate?: () => Promise<void>Optionalinfo?: () => Promise<ImageInfo | null>OptionalisRetained?: () => booleanOptionalrelease?: () => voidOptionalretain?: () => voidOptionalsaveImage?: (path: string, options?: SaveImageOptions) => Promise<boolean>Optionalserialize?: (Optional ReadonlyuniqueId?: stringStaticfromCreates ImageRef with uniqueId from base64 encoded buffer, e.g. from jpeg.
Optionaloptions: BufferImageLoadOptionsStaticfromCreates ImageRef with uniqueId from the file uri to an image.
Optionaloptions: PathImageLoadOptionsStaticmakeReturns a snapshot of all alive ImageRefs. The snapshot contains a list of ImageRefs with information such as in-memory size.
StaticreleaseReleases all alive images despite any existing references.
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.