lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
25 lines (24 loc) • 822 B
TypeScript
import { AsyncImageBitmap } from './AsyncImageBitmap.js';
export interface EffectImageBitmapOptions {
tint?: number;
resolution?: number;
}
export declare class EffectImageBitmap extends AsyncImageBitmap {
readonly backingMedia: HTMLImageElement;
private innerBitmap;
private ctx;
private lastSrc;
private waiting;
private _presentationHash;
readonly tint: number;
readonly resolution: number;
constructor(backingMedia: HTMLImageElement, options?: EffectImageBitmapOptions);
static fromURL(url: string, options?: EffectImageBitmapOptions): EffectImageBitmap;
get width(): number;
get height(): number;
private getScratchCtx;
private handleBitmapPromise;
private evaluateEffect;
get bitmap(): ImageBitmap | null;
get presentationHash(): number;
}