# BitmapStorage

*** ** * ** ***


```
public final class BitmapStorage
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final void` | `https://developer.android.com/reference/androidx/test/core/graphics/BitmapStorage#(android.graphics.Bitmap).writeToTestStorage(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Bitmap.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name)` Writes the contents of the `https://developer.android.com/reference/android/graphics/Bitmap.html` to a compressed png file on `https://developer.android.com/reference/androidx/test/platform/io/PlatformTestStorage` |

## Public methods

### writeToTestStorage

Artifact: [androidx.test:core](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/core/graphics/BitmapStorageExt.kt+function:writeToTestStorage)

```
public static final void writeToTestStorage(@NonNull Bitmap receiver, @NonNull String name)
```

Writes the contents of the `https://developer.android.com/reference/android/graphics/Bitmap.html` to a compressed png file on `https://developer.android.com/reference/androidx/test/platform/io/PlatformTestStorage`

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html name` | a descriptive base name for the resulting file. '.png' will be appended to this name. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/io/IOException.html` | if bitmap could not be compressed or written to ds |