fun toFile(file: File, format: <ERROR CLASS> = Bitmap.CompressFormat.PNG): Unit
Saves the EGL surface to a file. Expects that this object's EGL surface is current.