makeNull

fun makeNull(width: Int, height: Int): Surface

Returns Surface without backing pixels. Drawing to Canvas returned from Surface has no effect. Calling makeImageSnapshot() on returned Surface returns null.

Return

Surface if width and height are positive

Parameters

width

one or greater

height

one or greater

See also