cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f429i_disc1 BSP_LCD_DrawBitmap

Franksterb92
Senior

im having trouble displaying my own bitmap what converter should i use to convert a bmp file to array to work with this function 

1 ACCEPTED SOLUTION

Accepted Solutions
Amel NASRI
ST Employee

Hi @Franksterb92 ,

Some converters may be used to convert the input image to a C or a header file.

In AN4861, "LCD image converter tool" is used to generate required input file.

You can refer to the paragraph "Display an image from the internal flash" for more details.

-Amel

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Amel NASRI
ST Employee

Hi @Franksterb92 ,

Some converters may be used to convert the input image to a C or a header file.

In AN4861, "LCD image converter tool" is used to generate required input file.

You can refer to the paragraph "Display an image from the internal flash" for more details.

-Amel

 

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

thank you for the help st is the best!!!!!!!!!!!!

Franksterb92
Senior

 i actually figured this out  this function not obvious at the time but takes the raw bmp file data to be read from sd card from help with fatfs fuctions see st example but i did figure a way to do the conversion .you need to load the bmp file into hxd a hex editor program then go to file export then click c then take the array from this export and place in an .h file and include it in main then call BSP_LCD_DrawBitmap(0, 0, (uint8_t *)"name of the array from export"); with no quotation. this might be obvious to some but i was stumped on this for awhile 

 

THIS SHOULD BE SOLUTION