library / com.otaliastudios.opengl.surface / EglSurface / toFile

toFile

fun toFile(file: File, format: CompressFormat = Bitmap.CompressFormat.PNG): Unit

Saves the EGL surface to a file. Expects that this object's EGL surface is current.