BitmapStorage


public final class BitmapStorage


Summary

Public methods

static final void

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

static final void
@ExperimentalTestApi
writeToTestStorage(
    @NonNull Bitmap receiver,
    @NonNull PlatformTestStorage testStorage,
    @NonNull String name
)

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

Public methods

writeToTestStorage

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

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

Parameters
@NonNull String name

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

writeToTestStorage

@ExperimentalTestApi
public static final void writeToTestStorage(
    @NonNull Bitmap receiver,
    @NonNull PlatformTestStorage testStorage,
    @NonNull String name
)

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

Parameters
@NonNull PlatformTestStorage testStorage

the PlatformTestStorage to use

@NonNull String name

a descriptive base name for the resulting file

Throws
java.io.IOException

if bitmap could not be compressed or written to storage