how can i convert image.png color with BmpCvt.exe to an buffer 8 bit like stlogo.h and plot it in stm32f796i-discovery with a function BSP_LCD_DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp) ??
how can i convert image.png color with BmpCvt.exe to an buffer 8 bit like stlogo.h and plot it in stm32f796i-discovery with a function BSP_LCD_DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp) ??
Making the .H files contain hex arrays is a trivial exercise. One can do it for any file.
The problem is with the underlying format of the data, and how you process it. The .BMP files are a simple bitmap/raster format.
Things like .GIF, .JPG and .PNG are more complicated involving encoding and compression methods that need to be managed to unpack the data into lines/rasters and painted into the frame buffer.
The shift and diagonal line suggests you've got the line length off-byte-one, or perhaps the x and y dimensions switched.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..