When using
some icons not shown correctly (check image attached white arrow not shown in converted bitmap)
also its happens when using (Colors.Black) or other color
B4X:
Sub TextToBitmap (s As String, FontSize As Float) As Bitmap
Dim bmp As Bitmap
bmp.InitializeMutable(32dip, 32dip)
Dim cvs As Canvas
cvs.Initialize2(bmp)
Dim h As Double = cvs.MeasureStringHeight(s, lblfontAwesome.Typeface, FontSize)
cvs.DrawText(s, bmp.Width / 2, bmp.Height / 2 + h / 2, lblfontAwesome.Typeface, FontSize, Colors.White, "CENTER")
Return bmp
End Sub
also its happens when using (Colors.Black) or other color