Closed BerkCalik closed 6 years ago
Hi, Can i save image with original size? As an example, the camera takes pictures at a resolution of 3264x2448. After editing the image, it is saved is the same as when the screen resolution.
I'm used load photo to editor:
void loadPhotoEditor(String filePath) { mPhotoEditor.clearAllViews(); Bitmap photo = BitmapFactory.decodeFile(filePath ); photoEditorView.getSource().setImageBitmap(photo); }
and save function
@SuppressLint("MissingPermission") @OnClick(R.id.btnSave) public void onbtnEditSaveClicked() { progress = ProgressDialog.show(this, "İşleminiz Yapılıyor....", "Görsel kayıt ediliyor", true); mPhotoEditor.saveImage(mCurrentPhotoPath, new PhotoEditor.OnSaveListener() { @Override public void onSuccess(@NonNull String imagePath) { if (progress != null) { progress.dismiss(); } Toast.makeText(InspectionDetail_PhotoActivity.this, "Değişiklikler kayıt edildi.", Toast.LENGTH_SHORT).show(); editMode(false); fileAdapter.notifyDataSetChanged(); } @Override public void onFailure(@NonNull Exception exception) { if (progress != null) { progress.dismiss(); } Toast.makeText(InspectionDetail_PhotoActivity.this, "Değişiklikler kayıt edilemedi: " + exception.getMessage(), Toast.LENGTH_SHORT).show(); editMode(false); } }); }
Hi, Can i save image with original size? As an example, the camera takes pictures at a resolution of 3264x2448. After editing the image, it is saved is the same as when the screen resolution.
I'm used load photo to editor:
and save function