apidocs / com.nimmsta.core.android.util / MatrixToImageWriter / toBitmap

toBitmap

open static fun toBitmap(matrix: BitMatrix!): Bitmap!

Renders a BitMatrix as an image, where "false" bits are rendered as white, and "true" bits are rendered as black. Uses default configuration.

Parameters

matrix - BitMatrix!: BitMatrix to write

Return
Bitmap!: Bitmap representation of the input

open static fun toBitmap(matrix: BitMatrix!, config: MatrixToImageConfig!): Bitmap!

As #toBitmap(BitMatrix), but allows customization of the output.

Parameters

matrix - BitMatrix!: BitMatrix to write

config - MatrixToImageConfig!: output configuration

Return
Bitmap!: Bitmap representation of the input