Hello friends,
I have published an extension about Animated Gif with transparent background in the MIT forums.
- It needs a Clock and an Image component.
- The image can be clickable and transparent background.
Blocks:
-
LoadGif , needs a Image component. Image file can be in asset, it is only necessary to write its file name.
[It could also be in the SdCard, in this case we would write the absolute address /mnt/sdcard/directorio/file.gif]
We can set a color mask for the transparent background, ¡try several! , white, black, yellow … - GetFrameCount , number of frames gif file.
- GetCurrentFrameIndex , number of actual frame showed.
- GetNextDelay , delay of next frame, gets of file gif.
- Clock1.Timer
Image1.Photo = NextFrame (gets frame, inserts in Image) - CopyFrames , decoder each frame and save them in the indicated directory. If the directory does not exist, create it automatically. The directory base is /mnt/sdcard/. It could be saved in subdirectories. Example: images/sports .
- Events.
ImageDown and ImageUp, x,y positions of touch in image. inside is a boolean.
oooooooooooooooOOOoooooooooooooooo
I’ve tried it in Kodular and it also works.
p193A_gif_animado_Kodular.aia (955.0 KB)
You can download the extension of …
Create Build Crear App Inventor Extensiones Extensions. GIF animado, Animated GIF Android Click over touch. (com.KIO4_AniGifK.aix (para Kodular)
Juan A. Villalpando.