Skip to main content
Vitaliy Chernobay
Senior
May 27, 2018
Question

STemWin & GIF image & MULTIBUF

  • May 27, 2018
  • 3 replies
  • 2060 views
Posted on May 27, 2018 at 21:15

I did make a project for DiscoveryF746 & CubeMX 4.25.1 with the window with GIF image (my avatar).

For GUI_App.c file

the angel does not wave his wings for setting (as well as on my avatar) 

WM_MULTIBUF_Enable(1);

Angel wings for setting

WM_MULTIBUF_Enable(0);

0690X0000060PGNQA2.gif

Why is that?

#discovery-f746 #gif #stemwin #multibuf
This topic has been closed for replies.

3 replies

Technical Moderator
May 30, 2018
Posted on May 30, 2018 at 10:09

Hi

Chernobay.Vitali.002

,

Please keep all posts with the same questionin this

https://community.st.com/0D70X000006SqvYSAS

and do not duplicate in other threads.

With Regards,

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Vitaliy Kostyrev
Associate
June 1, 2018
Posted on June 01, 2018 at 05:51

#define START_GIF 0xD0600000

#define NEXT_ADDRESS_GIF(A) START_GIF+(A)

void GIF (void)

{

GUI_GIF_IMAGE_INFO ImageInfo = {0}; // Info structure of one particular GIF image of the GIF file

GUI_GIF_INFO GifInfo = {0}; // Info structure of GIF file

int i;

int j;

int XPos;

int YPos;

uint32_t selByt = 0;

fresult=f_open(&MyFile,'123.gif', FA_READ);

do

{

f_read(&MyFile, (char*)NEXT_ADDRESS_GIF(selByt), 512, &bytesread);

selByt+=512;

}while(bytesread > 511);

GUI_GIF_GetInfo((char*)START_GIF, MyFile.fsize, &GifInfo);

WM_MULTIBUF_Enable(1);

while(1)

{

for (j = 0; j < GifInfo.NumImages; j++)

{

GUI_GIF_DrawSub((char*)START_GIF, MyFile.fsize,400, 100, j); // Draw sub image

GUI_GIF_GetImageInfo((char*)START_GIF, MyFile.fsize, &ImageInfo, j); // Get sub image information

}

}

}
Vitaliy Kostyrev
Associate
June 1, 2018
Posted on June 01, 2018 at 05:54

If you use the IMAGE_SetGIF () function, keep track of the frame addresses yourself.

Vitaliy Chernobay
Senior
June 1, 2018
Posted on June 01, 2018 at 09:52

Hello,

vitalik180887

I have problems not only with the image.

The project is launched under the condition

//WM_MULTIBUF_Enable(1);

or

WM_MULTIBUF_Enable(0);

BUT! If I compile the project with the condition

WM_MULTIBUF_Enable(1);

After the power is turned off and on...

a project does not start...

Vitaliy Kostyrev
Associate
June 1, 2018
Posted on June 01, 2018 at 10:53

Hello! Everything works! I'm using stm32f746IGT! I can throw off my project! You will need to remake to your controller!