B4A Library Avatar Generator

This library gives you avatar like Telegram.
You can set color or use unique color based on your label.
screen.jpeg
screen2.jpg


Sample Code:
B4X:
Dim AG As AvatarGenerator
AG.Initialize.AvatarSize(64).TextSizePercentage(50).Label(Name).ToCircle

AG.Build 'To get bitmap
AG.Build2 'To get bitmapdrawable


B4A Library:

AvatarGenerator
Author:
MilaDesign
Version: 1.50

Methods:

  • Initialize
  • AvatarSize(Size As Int)
  • TextSizePercentage(TextSize As Int)
  • Label(Label As String)
  • BackgroundColor(Color As Int)
  • Typeface(Typeface As Typeface)
  • ToCircle
  • ToSquare
  • Build
  • Build2

Properties:

  • RANDOM As Int
 

Attachments

  • AvatarGenerator.zip
    4.3 KB · Views: 143
  • Sample.zip
    9.1 KB · Views: 161
Top