I changed the image to circular shape but I need a border around the circular image. The limit is not displayed for me
This is my code
public static bitmap getRoundedRectBitmap (bitmap bitmap, int pixel) {bitmap result = zero; Try {result = Bitmap.createBitmap (200, 200, bitmap config.Argb_8888); Canvas canvas = new canvas (result); Int color = 0xff424242; Paint paint = new paint (); Rect rect = new rect (0, 0, 200, 200); Paint.setAntiAlias (right); Canvas.drawARGB (0, 0, 0, 0); Paint.setColor (Color.GREEN); Canvas Dracleal (50, 50, 50, Paint); Paint.setXfermode (new Portfidfoixform (mode. RCNINI)); Canvas.drawBitmap (bitmap, rect, print, paint); } Hold (NullPointerException E) {} Hold (OutOfMemoryError o) {} Returning Results; }
Circular image view is a good third-party library. You can also add borders to the spherical image view.
No comments:
Post a Comment