Function: decodeRgbaDeflate()
decodeRgbaDeflate(
data,coords):Promise<Uint8ClampedArray<ArrayBuffer>>
Defined in: src/lib/image/index.ts:181
Decode rgba-deflate base64 data into raw RGBA pixels for a bounding box. Throws if the size does not match exactly.
Parameters
data
string
coords
Returns
Promise<Uint8ClampedArray<ArrayBuffer>>
Example
const rgba = await decodeRgbaDeflate(message.data, message.coords);
const imageData = new ImageData(rgba, width, height);