function idatChunkRefiner
idatChunkRefiner(): Refiner<PngChunkUnknown, IdatChunk, []>

Creates a refiner for IDAT (Image Data) chunks.

This refiner transforms raw IDAT chunk bytes into a structured IdatChunk object with decompressed image data.

Examples

Example 1

import { assert } from "@std/assert";
import { idatChunkRefiner } from "@binstruct/png";

const refiner = idatChunkRefiner();
assert(typeof refiner.refine === "function");
assert(typeof refiner.unrefine === "function");

Return Type

A refiner that converts between raw chunks and IdatChunk.

Usage

import { idatChunkRefiner } from ".";