Posts: 4
Threads: 2
Joined: Apr 2004
I am looking for a JPG or GIF decoder that will display the graphic and pallette in QBs format for quick BSAVEing and BLOADing. Any help on locating such a decoder would be nice. Thank you in advance.
ead of KatanaEdge Soft.
Posts: 720
Threads: 46
Joined: Oct 2001
Quote:I am looking for a JPG or GIF decoder that will display the graphic and pallette in QBs format for quick BSAVEing and BLOADing. Any help on locating such a decoder would be nice. Thank you in advance.
jpeg = teh noes!!
(unless you want to monkey around with some true color lib)
gif = teh yesh!
http://www.qbasic.com/files.mv (several on this page)
Posts: 3,616
Threads: 287
Joined: Jan 2003
Uh? Those links point to files on the author's own computer (file:// paths). :roll:
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Posts: 1,407
Threads: 117
Joined: Dec 2002
Wiz:
About gifs you have that old code of Rich geldreich using screen 13 or my own code at my site, allowing to select SVGA-SCREEN 13.
For jpegs this is not so easy , jpegs use true color so you have to shrink the color range to a 256 entries palette.
Several sources around:
I think the very first one by Petter Holmberg? was for screen 13, i don't remenber how he managed the colors. You can find it at ABC.
Dmitri Brant did some versions of his viewer, one of them was for screen 13, but it used a trick, it displayed only the b/w channel. Dmitri Brant's page is back on line, and it still has those QB viewers. You can find them also at ABC.
My viewer was only for SVGA but it managed paletted modes by using a very inaccurate dithering. It would be easy to do a SCREEN 13 version, if you ask me it to .You can find the last version at my site.
Last but not least ,Nathan's jpeg module uses Future Lib setpixel function. I don't know if Future lib would let you build a screen 13 program around. It is at his QBsux
None of the programs allows saving the screen, but it's easy to add a routine doing that.
Antoni