igreenwood/SimpleCropView

Can we save crop positions for image and later use over that image again

corientdev opened this issue · 2 comments

Can we save crop positions for image and later use over that image again?

I believe it should be there but not documented.

I believe we can get rectangle using getActualCropRect but how about reapplying this to selection of the same image?

@corientdev
Version 1.1.5 has been released.
CropImageView now supports save/restore frame rect.

Usage is below...

  • Save FrameRect
RectF mFrameRect;

mFrameRect = mCropView.getActualCropRect()
  • Restore FrameRect
mCropView.load(result.getData())
         .initialFrameRect(mFrameRect)
         .execute(mLoadCallback);

See also the sample project.