File library¶
The file library allows to save the screen or a window on a file, and to load it back into the frame-buffer.
There are three options:
-
The BMP file option saves and loads a BMP file to and from the SD-card.
-
The portable pixmap file option saves and loads a portable pixmap file to and from the SD-card.
Everything is performed at run-time.
- The image on SD-card option saves a header file to the SD-card.
The header file needs to be included into an application at build-time and displayed at the next run-time.
To summarise,
Method | BMP file | Image file | PBM file |
---|---|---|---|
Screens | All | Fast | Fast |
Save on | SD-card | SD-card | SD-card |
Save as | BMP | Header file | PBM file |
Generated at | Run-time | Run-time | Run-time |
Read from | SD-card | Header file | SD-card |
Included at | Run-time | Build-time | Run-time |
The BMP file on SD-card and header file on SD-card libraries are available on the Commercial edition.
Configure¶
Warning
The file operations on SD-card require the external SD library library.
Ensure the external SD-card library is installed and properly configured.
Use¶
Select one of the three options for the file library:
-
Save and retrieve screen content as BMP files at run-time on an SD-card;
-
Save and retrieve screen content as portable pixmap files at run-time on an SD-card;
-
Save screen content as images as header files at run-time on an SD-card to be included in an application at build-time.