Hello all,
I've been trying this new B4XView and it works great but, i need a function or something to stop the loop of the gif or to set to Null to the control.
I have already tried:
If the B4X Gif viewer doesn't have any kind of "stop" method, then you could take a screen shot of a frame from the gif (the frame that you like the best), and then when you want to "stop" the animation, load the bitmap of that one frame into the B4XGifViewer.
Hi John,
I just tried what you said but, now the snapshot bitmap is overlaped to the animation and still looping behind hahaha. ?
I think there should be a function to set to Null the GifDrawable, but i cant find the proper method.
Any other ideas?
This code is used in the Pleroma client to remove and immediately release images:
B4X:
Consumer.GifTarget.mBase.GetView(0).SetBitmap(Null)
#if B4A
If Consumer.GifTarget.GifDrawable.IsInitialized Then
Consumer.GifTarget.GifDrawable.RunMethod("recycle", Null)
End If
#End If
If B4XGifView1.GifDrawable.IsInitialized=True Then
B4XGifView1.mBase.GetView(0).SetBitmap(Null)
B4XGifView1.GifDrawable.RunMethod("recycle",Null)
B4XGifView1.GifDrawable=Null
End If