cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin & GIF image & MULTIBUF

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
7 REPLIES 7
Imen.D
ST Employee
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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Vitaliy Kostyrev
Associate II
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 II
Posted on June 01, 2018 at 05:54

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

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...

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!

Posted on June 01, 2018 at 11:19

vitalik180887

Thanks for the answer.

Did you use CubeMX for a generationof GUI?

Are GUIConf & LCDConf(STemwin_wrapper) from CubeMX?

With Regards,

Vitaliy Chrenobay.