cancel
Showing results for 
Search instead for 
Did you mean: 

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

Xu
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

2 REPLIES 2
Martin KJELDSEN
Chief III

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

Understand, thank you!