mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
8 lines (7 loc) • 578 B
TypeScript
export declare function blobToImage(blob: Blob): Promise<HTMLImageElement>;
export declare function blobToImageData(blob: Blob): Promise<ImageData>;
export declare function imageDataToBlob(imageData: ImageData): Promise<Blob | null>;
export declare function imageDataToDataUrl(imageData: ImageData): string;
export declare function imageDataToImage(imageData: ImageData): HTMLImageElement;
export declare function imageToImageData(image: TexImageSource): ImageData;
export declare function resizeImageData(data: TexImageSource, width: number, height: number): ImageData;