convert graphic screen to e.g. JPG file
convert graphic screen to e.g. JPG file
I have written a couple of programs in qbasic that can solve and generate new sudokus. At the moment the output is a 9x9 digit .txt file (without grid), where zero's represent empty places. However, it would be nice if a complete sudoku could be generated which can be inserted in a word file. To generate a grid with figures in the graphic mode is no problem; but how to convert the graphic screen to a JPG or something like that without repeating handwork.
-
- Veteran
- Posts: 399
- Joined: Wed Mar 02, 2005 9:01 pm
- Location: Nashville, Tennessee
- Contact:
Thanks for your reply.Dr_D wrote:It would be alot easier to save a bitmap. There are tons of those floating around for QB. Unless, you need to save it for the web?
I think that bitmap is good enough for this application. Can you supply a site with examples. I found several information about reading files, but no generation.
Regards,
Henderikus
I had a program at one point in time that could convert an SBS file (Super BSave) to a GIF image. Unfortunately, I lost the sourcecode long ago and I can't find the program at the moment but I'll see if I can dig it up. All you have to do is add a small portion of code to your program to capture an SBS file, then run that file through the converter to get a noninterlaced GIF87a image. I'll see if I can find them both, they're probably in my old QB-based WOS game.
Sounds promissing, I will waitNekrophidius wrote:I had a program at one point in time that could convert an SBS file (Super BSave) to a GIF image. Unfortunately, I lost the sourcecode long ago and I can't find the program at the moment but I'll see if I can dig it up. All you have to do is add a small portion of code to your program to capture an SBS file, then run that file through the converter to get a noninterlaced GIF87a image. I'll see if I can find them both, they're probably in my old QB-based WOS game.
Regards,
Henderikus
Sorry about the late response, it's been a busy week. Anyways, here ya go:
http://www.nodtveidt.net/sbs2gif.zip
It includes the sbs2gif converter with its documentation, plus some sourcecode to save an SBS file. Note that it only works in SCREEN 13 so if you're using a different screenmode, this won't help you much.
Oh...also, the documentation is slightly wrong. Drag-and-drop doesn't seem to work for this tool, you have to use it from the commandline and cannot include the extension. So if you have a file such as:
SMPL0001.SBS
you would type:
sbs2gif smpl0001
without the extension. Seems I was a poor coder back then.
http://www.nodtveidt.net/sbs2gif.zip
It includes the sbs2gif converter with its documentation, plus some sourcecode to save an SBS file. Note that it only works in SCREEN 13 so if you're using a different screenmode, this won't help you much.
Oh...also, the documentation is slightly wrong. Drag-and-drop doesn't seem to work for this tool, you have to use it from the commandline and cannot include the extension. So if you have a file such as:
SMPL0001.SBS
you would type:
sbs2gif smpl0001
without the extension. Seems I was a poor coder back then.
Nekrophidius wrote:Sorry about the late response, it's been a busy week. Anyways, here ya go:
http://www.nodtveidt.net/sbs2gif.zip
It includes the sbs2gif converter with its documentation, plus some sourcecode to save an SBS file. Note that it only works in SCREEN 13 so if you're using a different screenmode, this won't help you much.
Oh...also, the documentation is slightly wrong. Drag-and-drop doesn't seem to work for this tool, you have to use it from the commandline and cannot include the extension. So if you have a file such as:
SMPL0001.SBS
you would type:
sbs2gif smpl0001
without the extension. Seems I was a poor coder back then.
Thank you very much for supplying this code. Now I will do my best to make it operational at my computer.
Thanks,
Merallas