Bitmap file from SD card

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hello Engin,

    You will find detailed information on how to display images of different formats in the emWin documentation. Please have a look at the following sections:

    - Chapter 7.8 "2-D Graphic Library" -> "Drawing streamed bitmaps" (refers to chapter 8.5 "Getting data with the ...Ex() functions")
    - Chapter 8 "Displaying bitmap files"

    Could you please let me know if you were able to find the information you are looking for?

    Thank you.

    Best regards,
    Adrian
  • Hello Adrian



    First of all thank you for the information you provide.



    I am a little bit confused by the GUI user manuel by reading the related part which you pointed out.



    Will I pass just pass the file name with the function "GUI_BMP_DrawEx(...)" or is it required to read the file with "FS_FRead(...)"



    Could you be more spesific and tell me what steps I need to follow because there is no clear information on the user manuel. Since there is no clear information the user manuel, I can not proceed for drawing bitmap file from an SD or any other storage media.



    sincerely



    engin
  • Hello Engin,

    The function GUI_BMP_DrawEx() takes a function pointer as 1st parameter which is used by emWin to retrieve data from external memory. Since emWin can be used with any file system, this function needs to be implemented by the customer.

    For detailed information on how to implement a GetData() function, please refer to the chapter 8.5 "Displaying bitmap files" -> "Getting data with the ...Ex() functions".

    Best regards,
    Adrian