Yalantis / uCrop

Image Cropping Library for Android
https://yalantis.com/blog/introducing-ucrop-our-own-image-cropping-library-for-android/
11.86k stars 2.16k forks source link

about cropViewRectF #381

Closed wzgl5533 closed 6 years ago

wzgl5533 commented 6 years ago

How can I get current RectF of the cropView?or current instace of OverlayView? according to your method,I can‘t get current cropView object?

Legementarion commented 6 years ago

@wzgl5533 Hi, you can easy get OverlayView, for example - This code from sample

    UCropView uCropView = findViewById(R.id.ucrop);
    uCropView.getCropImageView().setImageUri(getIntent().getData(), null);
    uCropView.getOverlayView().setShowCropFrame(false);
    uCropView.getOverlayView().setShowCropGrid(false);

As you see, you can get OverlayView

Legementarion commented 6 years ago

Hope it solved