Function readPng

Inspect and decode a non-interlaced PNG into caller-owned pixel storage.

imageio.io.ImageReadResult readPng(
  scope const(ubyte)[] file,
  scope ubyte[] destination,
  ulong rowStride,
  ref compression.deflate.InflateWorkspace workspace,
  ulong maximumPixels = 67108864LU
) @safe;