decodePng

abstract fun decodePng(bytes: ByteArray): DrawImage(source)

Decodes PNG bytes into a detached straight-ARGB image.

Return

immutable decoded pixels.

Parameters

bytes

caller-owned bytes that must not be retained or modified.

Throws

when the PNG cannot be decoded.