-
Getting roundedCorner for an Image in Android
almost 11 years ago
-
over 9 years ago
Hi Arpit, you can use the below line to decode the file:
BitmapFactory.Options o2 = new BitmapFactory.Options();
BitmapFactory.decodeStream(new FileInputStream(f), null, o2)
I had used like this and it was working fine for me.
-
-
over 9 years ago
It is not helping me I'm using it as shown below :-
Bitmap bitmap; BitmapFactory.Options bitmapOptions = new BitmapFactory.Options(); bitmap = BitmapFactory.decodeFile(f.getAbsolutePath(),bitmapOptions); profilePicImageView.setImageBitmap(getRoundedCornerImage(bitmap));
-
2 Comment(s)