Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make crop shape without margin #59

Open
xaviburruezo opened this issue Jun 3, 2019 · 1 comment
Open

How to make crop shape without margin #59

xaviburruezo opened this issue Jun 3, 2019 · 1 comment

Comments

@xaviburruezo
Copy link

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!

@ITurchenko
Copy link

You could use

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants