import { Image } from './Image'; import { ImagePoolInterface } from './ImagePoolInterface'; import { ImageWebGLTexture } from './ImageWebGLTexture'; /** * Image backed by an instance of ImageData. */ export declare class ImageImageData extends Image { private imageData; private uint8Array; constructor(width: number, height: number, imageData?: ImageData, pool?: ImagePoolInterface); readonly width: number; readonly height: number; /** * Returns the image to the pool. */ returnImage(): void; /** * Convert the image into a WebGL texture. */ asWebGLTexture(): ImageWebGLTexture; getImageData(): ImageData; getUint8ClampedArray(): Uint8ClampedArray; getUint8Array(): Uint8Array; /** * Draw the image onto a 2d canvas. */ drawToContext2D(context: CanvasRenderingContext2D): void; }