Skip to main content
Xu_it
Associate II
September 11, 2019
Solved

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

  • September 11, 2019
  • 2 replies
  • 1141 views

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.
Best answer by Martin KJELDSEN

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
September 11, 2019

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
September 12, 2019

Understand, thank you!