This Library allows you to create your own GIFs from Images.
B4X:
Dim gif As AnimatedGifEncoder
gif.Initialize
gif.setSize(160,160)
gif.Delay=250
gif.Quality=10
gif.Repeat=0
Dim filename As String = "sample.gif"
Dim out As OutputStream
out = File.OpenOutput(File.DirApp, filename, False)
gif.start(out)
For i=0 To 32
gif.addFrame(xui.LoadBitmap(File.DirAssets, i & ".jpg"))
Next
gif.finish
Out.Close
Attachments
Last edited: