Hello, can anyone give example of how to draw bitmap from input RGB888 from memory to output ARGB8888 in some LCD lay?
I'm using STM32H743I-eval board with another LCD 1024x768. Any graphical figures draws good.
Is appear any emWin functions or i have to define my custom function for drawing?
I see some close for my question, and this code seems have to work:
Display All
but i see corrupted picture.
I'm using STM32H743I-eval board with another LCD 1024x768. Any graphical figures draws good.
Is appear any emWin functions or i have to define my custom function for drawing?
I see some close for my question, and this code seems have to work:
C Source Code
- #define LCD_LAYER0_FRAME_BUFFER ((int)0xD0000000)
- #define LCD_LAYER1_FRAME_BUFFER ((int)0xD0400000)
- uint8_t *uwInternelBuffer = (uint8_t *)0xD0A00000; // Here is my RGB888 data
- static GUI_BITMAP picture;
- picture.XSize = 1024;
- picture.YSize = 768;
- picture.BytesPerLine = 1024 * 3;
- picture.BitsPerPixel = 24;
- picture.pPal = NULL;
- picture.pMethods = GUI_DRAW_BMP8888;
- picture.pData = (unsigned char *)uwInternelBuffer;