fun toOutputStream(stream: OutputStream, format: <ERROR CLASS> = Bitmap.CompressFormat.PNG): Unit
Saves the EGL surface to the given output stream. Expects that this object's EGL surface is current.