Tuesday, April 24th 2018, 12:11pm UTC+2

You are not logged in.

  • Login
  • Register

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 50

1

Sunday, April 8th 2018, 9:50am

GUI_BMP_Draw() Drawing 8bit bitmap file failed

Hello,

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

Source code

1
2
3
4
5
6
  pData = SWITCH__aBmpData[Index];
  GUI_SetClipRect(&Rect);
  GUI_BMP_EnableAlpha();
  GUI_BMP_Draw(pData, Rect.x0, Rect.y0);
  GUI_BMP_DisableAlpha();
  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

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 562

2

Thursday, April 12th 2018, 10:11am

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

kenmux

Beginner

Date of registration: Jan 18th 2016

Posts: 50

3

Friday, April 13th 2018, 9:25am

Hello Sven,

Thanks for your team's great work.

Best Regards,
Kenmux