encodeBytes

suspend fun CoreImage.encodeBytes(format: CoreImageFormat, level: Double = 1.0): ByteArray

Encodes a CoreImage into a ByteArray in the specified format (PNG, JPEG, etc.)