snapshot

fun snapshot(size: Size, textureTransform: FloatArray): Bitmap

Takes a snapshot of the current external texture and returns a Bitmap.

Parameters

size

the size of the output Bitmap.

textureTransform

the transformation matrix. See: SurfaceOutput.updateTransformMatrix