@image-tracer-ts/browser
Version:
Platform-specific bindings for image-tracer-ts. Turn images into SVG files in browsers.
13 lines • 414 B
TypeScript
declare module 'read-pixels' {
type InputDataTypes = ArrayBuffer|File|Response|string|Blob|RelativeIndexable
type InputData = {
data: InputDataTypes|Promise<InputDataTypes>,
debug?: boolean
}
type PixelData = {
width: number,
height: number,
pixels: Uint8ClampedArray,
}
export default async function readPixels(inp: InputData): Promise<PixelData>
};