Page 1 of 1

Need help jpeg files open read ect.

Posted: Sun Aug 31, 2008 10:53 am
by depot1
i want to open and read a jpeg file
just for data proccessing
i want to get the pixles in 24 bit color
is there a way to display them with pset
also is the close # nessesary
thanks
**********the code ***************
10 CLS
11 d = 0
20 OPEN "c:\5.jpg" FOR BINARY AS #1
50 DO WHILE NOT EOF(1)
60 d = d + 1
70 GET #1, d, nm$
80 PRINT nm$
90 PRINT d
LOOP
GOTO 50

Posted: Sun Aug 31, 2008 11:00 am
by TmEE
JPG files can't be displayed that easily...

A word of advise

Posted: Sun Aug 31, 2008 1:54 pm
by burger2227
Please don't place files on your root C drive! Qbasic may overwrite Windows files without warning! Use a folder for QB and it's files.

Ted

Posted: Tue Oct 07, 2008 2:55 pm
by SlowCoder
I recommend you begin by studying the JPG file format.