# PNG decoder example

`mbsdk_image_decode` accepts up to 64 MiB of PNG bytes and returns the image dimensions and tightly packed RGBA8 pixels in row order. On success, release the pixel span with `mbsdk_image_free` from the same SDK. On failure, the outputs are empty.

The C and .NET hosts decode a 2 × 1 PNG, check the exact RGBA values, and release the output after each call. They also exercise truncated and empty input.
