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 251 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
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.