RoundImage V1.0
This Library can create a round image from an bitmap or an round drawable from an drawable
This Library can create a round image from an bitmap or an round drawable from an drawable
B4X:
Sub Globals
Dim ri As RoundImage
Private Panel1 As Panel
Private ImageView1 As ImageView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout1")
Dim bd As BitmapDrawable
bd.Initialize(LoadBitmap(File.DirAssets,"simonscat.jpg"))
Panel1.Background = ri.CreateDrawable(bd)
ImageView1.Bitmap = ri.CreateBitmap(LoadBitmap(File.DirAssets,"simonscat.jpg"))
End Sub