toRGBA

fun BufferedImage.toRGBA(): ByteArray

Convert an ImageIO buffer to a tightly-packed RGBA array.

As far as image-processing functions go, this will be super duper slow. Hopefully, that won't be a bottleneck for us though.