encodeToPng

fun encodeToPng(page: <Error class: unknown class>, scale: Double = 1.0, background: Int = Color.WHITE): ByteArray

Convenience: render and return PNG bytes.