gif image

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • hi,
      I had generated c file from gif image using bmpcvt from File-Create animated sprite from GIF file is attached.

      Problem is I now not able to find out the way to use generated file. I had seen the example but generated file got more than one functions. If somebody put gif on TFT do let me know the way.
      Files
      • preloader.zip

        (24.83 kB, downloaded 42 times, last: )
    • Hi,

      I have taken a look into your files. The GIF file seems not to be animated. Regarding the c-file, simply copy the content into your application and call GUI_DrawBitmap(&bmpreloadersm, xPos, yPos).

      If you want to have an animated GIF, please check the code attached.

      The c-file was created with the Bitmap Converter. Open the Converter and select File -> Create animated Sprite from GIF (I guess you did it the same way).

      The example shows two ways. One way is to use the GIF directly and manage drawing of all the sub images on your own and the second way is to use a SPRITE. For the first method I have converted the GIF file into a c-array using the Bin2C tool. For second method I use a sprite created as described above.

      A third method would be to use the IMAGE widget and set a GIF file. It will also animated automatically. Please refer to the IMAGE widget API in the emWin user manual.

      Regards
      Sven