decode

fun decode(data: ByteArray, globals: ByteArray?, width: Int, height: Int): ByteArray?

Decode data (the /JBIG2Decode stream) with optional globals into a 1bpp bitmap.