GUI_BMP_Draw() Drawing 8bit bitmap file failed

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

    • GUI_BMP_Draw() Drawing 8bit bitmap file failed

      Hello,

      I used to use the code to draw the bitmap image files:

      Source Code

      1. pData = SWITCH__aBmpData[Index];
      2. GUI_SetClipRect(&Rect);
      3. GUI_BMP_EnableAlpha();
      4. GUI_BMP_Draw(pData, Rect.x0, Rect.y0);
      5. GUI_BMP_DisableAlpha();
      6. GUI_SetClipRect(NULL);


      I tested with 32bit images, all's okay;
      but, when I tested with 8bit iamges, it failed.

      The attached are the files I tested with.
      The 8bit images are created from 32bit ones using GIMP.
      The attached file "SWITCH_Image.c" is the image data created from the image files.

      Am I doing something wrong?
      Any idea is welcome!

      Image_32bit.zip
      Image_8bit.zip
      SWITCH_Image.zip
    • Hi,

      I was able to reproduce the issue and fixed it.

      You got a valid GUI license number, please contatct the emWin support directly to get a fixed version.

      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.