[]
Represents a JPEG or PNG image instance.
get height(): number;
Gets the height of the image, in pixels.
number
get id(): number;
Gets the reference to the object.
number
get om(): ObjectManager;
Gets the owner ObjectManager instance.
get opaque(): boolean;
Gets the value indicating if the image is opaque.
boolean
get type(): ImageType;
Gets the type of the image, such as JPEG or PNG.
get width(): number;
Gets the width of the image, in pixels.
number
static load(imageBytes): Image;
Creates an Image from the byte array with JPEG or PNG encoded image data.
Uint8Array
The binary data of the image.
Image
A new instance of the Image.
static load(om, imageBytes): Image;
Creates an Image from the byte array with JPEG or PNG encoded image data.
An object manager that controls the lifetime of the Image object.
Uint8Array
The binary data of the image.
Image
A new instance of the Image.
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void
save(): Uint8Array;
Saves the Image as a byte array with PNG or JPEG-encoded image data.
Uint8Array
A byte array with image data.
toBitmap(): Bitmap;
Creates a Bitmap instance from the current Image.
A new instance of Bitmap with image data.