cropiwa icon indicating copy to clipboard operation
cropiwa copied to clipboard

How to make crop shape without margin

Open xaviburruezo opened this issue 5 years ago • 1 comments

We are developing a profile section for an app that requires us to draw a crop overlay shape (rect and oval) that has a width equal to the whole screen. We have tried different approaches but we always end up with a slight margin on the sides of the oval and the rectangle. What should we do to achieve our goal? What kind of ShapeMask should we develop?

Thanks!

xaviburruezo avatar Jun 03 '19 13:06 xaviburruezo

You could use

    cropView.configureOverlay()
            .setCropScale(1f)
            .apply()

Or just app:ci_crop_scale="1" in .xml

ITurchenko avatar Sep 02 '20 14:09 ITurchenko