# 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`](https://docs.mapcairn.com/api/core/readPngSize.md),
and a real PNG reads the same way.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { pngHeader } from "@mapcairn/core";
 
function pngHeader(width: number, height: number): Uint8Array<ArrayBuffer>;
```

## Parameters

- `width` (`number`)
- `height` (`number`)

## Returns

`Uint8Array<ArrayBuffer>`

Source: [packages/core/src/fakes/pngHeader.ts:32](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/fakes/pngHeader.ts#L32)
