I refer to this question which links to this article on how to create rounded corners on an image.
It works fine for image I am downloading from the web, but when I read the image from the Resources/Drawable folder the image is not getting rounded.
When getting image from the web I use:
Bitmap img = BitmapFactory.decodeStream(inputStream);
And when decoding from resources I use:
Bitmap img = BitmapFactory.decodeResource(ctx.getResources(), R.drawable.profile_photo);
When decoding from resources the returned bitmap is not null.
Any ideas on where I am going wrong with this one?