Skip to content

common.DecodePNG

Decode a PNG image.

Syntax

{rgba, width:int, height:int} common.DecodePNG(data)

Parameters

data The image data to decode.

Return value

Returns rgba, width and height of the decoded image.