androidx.test.core.graphics


Extension functions summary

Unit

Writes the contents of the Bitmap to a compressed png file on PlatformTestStorage

Extension functions

writeToTestStorage

fun Bitmap.writeToTestStorage(name: String): Unit

Writes the contents of the Bitmap to a compressed png file on PlatformTestStorage

Parameters
name: String

a descriptive base name for the resulting file. '.png' will be appended to this name.

Throws
java.io.IOException

if bitmap could not be compressed or written to ds