Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Rounded corners with scaleType center_crop #42

Closed
zaiquirii opened this issue May 16, 2014 · 2 comments
Closed

Rounded corners with scaleType center_crop #42

zaiquirii opened this issue May 16, 2014 · 2 comments

Comments

@zaiquirii
Copy link

When setting the scaleType to center_crop with an image that is bigger that the view, the image is not rounded. This is because of the image corners are rounded and they are not inside of the views bounds.

How would I go about getting rounded corners on an image scaled with center_crop?

@vinc3m1
Copy link
Owner

vinc3m1 commented May 16, 2014

All the images in example app are bigger than the view, and center_crop works just fine. Are you doing something else wrong?

@zaiquirii
Copy link
Author

I was. I was setting scale crop on the image transformation instead of the imageview itself. Thanks for getting me to look closer.

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

No branches or pull requests

2 participants