05-27-2023, 02:59 AM
You might need to create a picture out of a QB64 program to be printed out later, but the main problem is that it might need to be exported to PDF to make life easier. Because QB64 has no support for saving to BMP, PNG, JPEG, PDF or any other image format popularly used.
But you could import the following routine found on the first post of this thread:
https://qb64phoenix.com/forum/showthread.php?tid=1253
Do not further confuse yourself with other posts on that thread; the other solution might work also but it has much more code that works only on Windows. This is focused only on BMP, which sucks I know and you might prefer instead to export to PNG or something else. Also this SaveImage() routine is slow but does the job.
But you could import the following routine found on the first post of this thread:
https://qb64phoenix.com/forum/showthread.php?tid=1253
Do not further confuse yourself with other posts on that thread; the other solution might work also but it has much more code that works only on Windows. This is focused only on BMP, which sucks I know and you might prefer instead to export to PNG or something else. Also this SaveImage() routine is slow but does the job.