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

RoundedBitmapDisplayer not display round corner correctly(CenterCrop) #315

Closed
yiki-ecnavi opened this issue Jun 25, 2013 · 0 comments
Closed
Labels

Comments

@yiki-ecnavi
Copy link

Hi, firstly, sorry for my pool english.
I'm using RoundedBitmapDisplayer for display an imageView which want to be rounded.
And in my case, the imageView size is 124x124, and the bitmap which want to load is 96x144. The imageView scaleType is "CenterCrop". I debugged the rounded bitmap size that it is not work correctly.In my hope, the size will be 124x124, but the output is 96x124.
Since I commented following code, and modify the width and height value, it work fine.

case CENTER_CROP:
                (....)
//                width = Math.min(vw, bw);
//                height = Math.min(vh, bh);
                width = srcWidth;
                height = srcHeight;
                srcRect = new Rect(x, y, x + srcWidth, y + srcHeight);
                destRect = new Rect(0, 0, width, height);
                break;

Hope your reply for this fix.

nostra13 added a commit that referenced this issue Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants