Skip to main content
Franksterb92
Senior
February 12, 2025
Solved

stm32f429i_disc1 BSP_LCD_DrawBitmap

  • February 12, 2025
  • 2 replies
  • 550 views

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

Best answer by Amel NASRI

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

 

 

2 replies

Amel NASRI
Amel NASRIBest answer
Technical Moderator
February 20, 2025

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.
Franksterb92
Senior
March 15, 2025

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

Franksterb92
Senior
March 16, 2026

 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