working on saving result as a file

This commit is contained in:
theKapcioszek 2024-04-04 20:35:00 +02:00
parent 608533b754
commit df2db05f7f
3 changed files with 12 additions and 0 deletions

View File

@ -21,3 +21,10 @@ make
- [X] Add text box instead of passing an argument
- [ ] WebAssembly compilation
- [ ] Option to save result as an image
<br><br>
<p align=center>
<img src="./screenshot.png">
</p>

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -220,6 +220,11 @@ int main(int argc, char *argv[]){
while(!WindowShouldClose()){
if(IsKeyPressed(KEY_F2)){
Image screenshot = LoadImageFromScreen();
ExportImage(screenshot, "screenshot.png");
}
transcript(message, charcters);
BeginDrawing();