pngHeader
The start of a PNG of a given size: its signature and the width and height
of its IHDR chunk. It is not a whole image, but a fake can return it so a
test can read the size an adapter was asked to draw with readPngSize,
and a real PNG reads the same way.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { pngHeader } from "@mapcairn/core";
function pngHeader(width: number, height: number): Uint8Array<ArrayBuffer>;
Parameters
width(number)height(number)
Returns
Uint8Array<ArrayBuffer>