How can I remove the white background from an image? I have tried this but it doesn't work:
B4X:
Private Sub Button1_Click
Dim efecto As BitmapCreatorEffects
efecto.Initialize
Dim bmp As B4XBitmap = xui.LoadBitmap(File.DirAssets, "test0.png")
Dim bmp_transparent As B4XBitmap = efecto.ReplaceColor(bmp, xui.Color_White, xui.Color_Transparent, False)
xui.SetDataFolder("test_img")
Dim Out As OutputStream
Out = File.OpenOutput(xui.DefaultFolder, "bmp_transparent.png", False)
bmp_transparent.WriteToStream(Out, 100, "PNG")
End Sub