import * as em from "./Enums"; import { ObjectManager } from "./ObjectManager"; import { ObjectBase } from "./ObjectBase"; import { type Bitmap } from "./Bitmap"; /** * Represents a JPEG or PNG image instance. **/ export declare class Image extends ObjectBase { /** * Creates an {@link Image} from the byte array with JPEG or PNG encoded image data. * @param imageBytes The binary data of the image. * @returns A new instance of the {@link Image}. **/ static load(imageBytes: Uint8Array): Image; /** * Creates an {@link Image} from the byte array with JPEG or PNG encoded image data. * @param om An object manager that controls the lifetime of the {@link Image} object. * @param imageBytes The binary data of the image. * @returns A new instance of the {@link Image}. **/ static load(om: ObjectManager, imageBytes: Uint8Array): Image; /** * Gets the type of the image, such as JPEG or PNG. **/ get type(): em.ImageType; /** * Gets the width of the image, in pixels. **/ get width(): number; /** * Gets the height of the image, in pixels. **/ get height(): number; /** * Gets the value indicating if the image is opaque. **/ get opaque(): boolean; /** * Saves the Image as a byte array with PNG or JPEG-encoded image data. * @returns A byte array with image data. **/ save(): Uint8Array; /** * Creates a {@link Bitmap} instance from the current {@link Image}. * @returns A new instance of {@link Bitmap} with image data. **/ toBitmap(): Bitmap; }