savePhoto

open fun savePhoto(@NonNull bitmap: Bitmap, file: File): Boolean

Attempts to save specified bitmap as JPEG to the target location, while creating all the necessary parent folders.

Return

Whether the saving was successful.

Parameters

bitmap

Bitmap to be saved

file

Target file the bitmap will be saved to.