Need help jpeg files open read ect.

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
depot1
Newbie
Posts: 7
Joined: Thu Aug 04, 2005 8:53 pm
Location: downey ca

Need help jpeg files open read ect.

Post 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
TmEE
Veteran
Posts: 97
Joined: Mon Mar 17, 2008 11:14 am
Location: Estonia, Rapla
Contact:

Post by TmEE »

JPG files can't be displayed that easily...
Mida sa loed ? Nagunii aru ei saa :P
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

A word of advise

Post 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
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
SlowCoder
Coder
Posts: 26
Joined: Wed Oct 01, 2008 8:27 am

Post by SlowCoder »

I recommend you begin by studying the JPG file format.
Post Reply