Page 1 of 1

Using QBasic prog to load a JPEG

Posted: Fri Sep 12, 2003 1:35 am
by Guest
I would like to use QBasic to load a JPEG file and disply it on the screen. Every example that I have seen doesn't work, including the one i downloaded form this site. Any suggestions?

Thanks

PS- The error that I am receiving from the debugger is 'Label not defined.' for the JPEG viewer that is available at this website.

Re: Using QBasic prog to load a JPEG

Posted: Sun Sep 28, 2003 1:07 am
by Dr_Davenstein
You can try to make your own. You'd have to figure out  how JPEG files are structured though. I don't know anything about them  ::), but I'm sure you can find documentation somewhere on the net.

Re: Using QBasic prog to load a JPEG

Posted: Sat May 29, 2004 11:49 pm
by spuki
You can show image files using the shell command and another program, e.g. LxPic by Stefan Peichl. An example of how this can be done can be found in a program I have written for learning, mainly vocabulary, which is described at http://wikibooks.org/wiki/User:Get-back-world-respect and discussed at http://en.wikipedia.org/wiki/User_talk: ... ld-respect
There is a download for the learning program as well.
Some others complained that since it is written in qbasic they could not run it with linux or macs. Could you help me with this?

Re: Using QBasic prog to load a JPEG

Posted: Sun May 30, 2004 6:33 am
by Guest
There is a jpeg loader written in C by Rich Geldreich
a long-time QB guru that possibly it would be able
to incorporate it using the external routines intended
for C program. I don't recall the procedure name in
QB off hand without looking it up, and have never really
used it, but it is a possibility.