Skip to main content
Xu_it
Associate II
Sep 11, 2019 8:52 AM UTC
Solved

How to save the screenshot of the LCD on the target board into SD?

I found the void HALSDL2::saveScreenshot(); function, but it is located in the path of the simulator. Can the target board use this function?

This topic has been closed for replies.
Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Sep 11, 2019 11:00 AM UTC

No, it can't.

You have to make something that can

  1. Read from the framebuffer you want to dump (can be multiple) - We don't use that concept on the windows simulator
  2. Write files and directories on whatever media you want (SD Card)
  3. The simulator uses a method called SDL_SaveBMP()) which is a part of the SDL framework. You can probably get some inspiration from that.

/Martin

2 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
Sep 11, 2019 11:00 AM UTC

No, it can't.

You have to make something that can

  1. Read from the framebuffer you want to dump (can be multiple) - We don't use that concept on the windows simulator
  2. Write files and directories on whatever media you want (SD Card)
  3. The simulator uses a method called SDL_SaveBMP()) which is a part of the SDL framework. You can probably get some inspiration from that.

/Martin

Xu_it
Xu_itAuthor
Associate II
Sep 12, 2019 1:09 AM UTC

Understand, thank you!