I generated a screenshot bitmap file using GUI_BMP_SerializeEx(), I can open it on my PC, and then I need to draw this bitmap file on the screen again using GUI_BMP_DrawEx() or any others, and unfortunately when I use GUI_BMP_DrawEx(), it return 1 which mean error,
- I can't use SetFilePointer(), or the alternate functions (ftell, and fseek), its not supported with libc version I'm working with, I uEZ software environment from TeamFDI, teamfdi.com/ , which don't support such functions, so is there a work around to do so.
- I tried to save and read again another small bmp file, so it don't need multiple file read, and adjusting the file pointer, the GUI_BMP_DrawEx(), returned 0, and it accessed Getdata_fn once, but it didn't draw any thing.
- I tried to use GUI_BMP_Draw(), as I read the whole bmp file first to a buffer with the proper size, and try to draw this buffer with GUI_BMP_Draw(), it return 0, but again nothing drawn.
All the above tries based on sample code at 2DGL_DrawBMP.C code
Find attached sample code illustrates my tries.
- I can't use SetFilePointer(), or the alternate functions (ftell, and fseek), its not supported with libc version I'm working with, I uEZ software environment from TeamFDI, teamfdi.com/ , which don't support such functions, so is there a work around to do so.
- I tried to save and read again another small bmp file, so it don't need multiple file read, and adjusting the file pointer, the GUI_BMP_DrawEx(), returned 0, and it accessed Getdata_fn once, but it didn't draw any thing.
- I tried to use GUI_BMP_Draw(), as I read the whole bmp file first to a buffer with the proper size, and try to draw this buffer with GUI_BMP_Draw(), it return 0, but again nothing drawn.
All the above tries based on sample code at 2DGL_DrawBMP.C code
Find attached sample code illustrates my tries.