Method Image.PNG._decode()
- Method _decode
 mapping_decode(string|arraydata)
mapping_decode(string|arraydata,mappingoptions)- Description
 Decode a PNG image file.
- Parameter 
options "colortable":string|array|Image.ColortableA replacement color table to be used instead of the one in the PNG file, if any.
- Returns
 "image":Image.ImageThe decoded image.
"bpp":intNumber of bitplanes in the image. One of 1, 2, 4, 8 and 16.
"type":intImage color type. Bit values are:
1Palette used.
2Color used.
4Alpha channel used.
Valid values are 0, 2, 3, 4 and 6.
"xsize":intImage dimensions.
"ysize":int"background":array(int)The background color, if any. An array of size three with the RGB values.
"alpha":Image.ImageThe alpha channel, if any.
- Throws
 Throws an error if the image data is erroneous.
- Note
 Please read about the PNG file format. This function ignores any checksum errors in the file. A PNG of higher color resolution than the Image module supports (8 bit) will lose that information in the conversion.