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.
Using QBasic prog to load a JPEG
Moderators:Administrator, Global Moderator
-
- QBasic God
- Posts:166
- Joined:Tue Mar 25, 2003 12:45 am
- Location:U.S.A.
- Contact:
Re: Using QBasic prog to load a JPEG
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.
Come check out [url=http://www.freebasic.net/forum/index.php]FreeBASIC[/url]. The syntax is based on QuickBasic, but it expands to use pointers, operator overloading, etc... The list goes on and on!
Re: Using QBasic prog to load a JPEG
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?
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
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.
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.