check_bitdepth_colortype Function

Defined in pyglet.extlibs.png

check_bitdepth_colortype(bitdepth, colortype)

Check that bitdepth and colortype are both valid, and specified in a valid combination. Returns if valid, raise an Exception if not valid.

Previous topic

FormatError

Next topic

check_color Function