-
-
Notifications
You must be signed in to change notification settings - Fork 993
Saving
Burhanuddin Rashid edited this page May 30, 2018
·
5 revisions
You can save image as a file which needs to provide a file path with callback method when an edited image is saved
mPhotoEditor.saveAsFile(filePath, new PhotoEditor.OnSaveListener() {
@Override
public void onSuccess(@NonNull String imagePath) {
Log.e("PhotoEditor","Image Saved Successfully");
}
@Override
public void onFailure(@NonNull Exception exception) {
Log.e("PhotoEditor","Failed to save Image");
}
});
You can also save image as a bitmap using saveAsBitmap provides a callback with saved bitmap
mPhotoEditor.saveAsBitmap(new PhotoEditor.OnSaveBitmap() {
@Override
public void onBitmapReady(@NonNull Bitmap saveBitmap) {
Log.e("PhotoEditor","Image Saved Successfully");
}
@Override
public void onFailure(@NonNull Exception exception) {
Log.e("PhotoEditor","Failed to save Image");
}
});