save

open fun save(src: Bitmap, filePath: String, format: Bitmap.CompressFormat): Boolean

Save the bitmap.

Return

{@code true}: success{@code false}: fail

Parameters

src

The source of bitmap.

filePath

The path of file.

format

The format of the image.

open fun save(src: Bitmap, file: File, format: Bitmap.CompressFormat): Boolean

Save the bitmap.

Return

{@code true}: success{@code false}: fail

Parameters

src

The source of bitmap.

file

The file.

format

The format of the image.

open fun save(src: Bitmap, filePath: String, format: Bitmap.CompressFormat, recycle: Boolean): Boolean

Save the bitmap.

Return

{@code true}: success{@code false}: fail

Parameters

src

The source of bitmap.

filePath

The path of file.

format

The format of the image.

recycle

True to recycle the source of bitmap, false otherwise.

open fun save(src: Bitmap, file: File, format: Bitmap.CompressFormat, recycle: Boolean): Boolean

Save the bitmap.

Return

{@code true}: success{@code false}: fail

Parameters

src

The source of bitmap.

file

The file.

format

The format of the image.

recycle

True to recycle the source of bitmap, false otherwise.