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

toByteArray

fun toByteArray(format: <ERROR CLASS> = Bitmap.CompressFormat.PNG): ByteArray

Saves the EGL surface to given format. Expects that this object's EGL surface is current.