Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loading png
#1
Hey can QB Load png....is there code to do it?

Could you post it? :o Ummm...Please post it. thnx.
i]"But...it was so beautifully done"[/i]
Reply
#2
Personally I don't know about the PNG file format, but with a little bit of studying the format you might be able to make a program that can read PNGs.

http://www.wotsit.org
^^ very handy for explanations about many different types of file formats Smile

Sorry I have no code Sad
Reply
#3
Thanks for a link though Big Grin
i]"But...it was so beautifully done"[/i]
Reply
#4
You can try GIF which are almost as good as PNG8 images. There are some loaders at the ABC packets.I recommend Rich Gieldreich's, the assembly one. You can put it in your lib easily and use it for QB. It's the fastest (almost instant loading) and works in all video modes.

http://www.qbasicnews.com/abc/showsnippe...snippet=73
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#5
Ok.
I heard of Rich. Big Grin

Ummm....1 thing. Arn't png + gif almost the same thing? Also...Arn't gifs copywritten?
i]"But...it was so beautifully done"[/i]
Reply
#6
PNG gaurantees lossless compression; GIFs don't. I think the problem about the software patent is a little fuzzy; apparently it expired not long ago, but I don't know what the state on it is.

In my opinion, the PNG format has been designed in a developer-friendly way (the patent releases the algorithm to be used freely with absolutely no royalties, credits, etc. etc.).

The specific problem with GIF was that it used LZW compression, which is/was a patented compression algorithm.

-shiftLynx

P.S. While the subject has been brought up... http://petition.eurolinux.org/
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Reply
#7
BTW: The compression in Gif is lossless too.
Antoni
Reply
#8
How come when I take a pic in bmp and make one a gif + one a png, the gif looks all wierd colors and the png looks exactly fine? :-?
i]"But...it was so beautifully done"[/i]
Reply
#9
That's because PNG supports different bit-depths (probably 32bpp in your test). GIF only supports 8-bit images.

Something else that's quite cool about PNGs: not only can you have transparency (as in GIFs), but apparently translucency works in 32bpp assuming your paint program saves the alpha layer properly.

-shiftLynx
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Reply
#10
GIF is limited to 256 colors. For 24 bits images graphics editors must create an optimized palette and/or do some dithering to obtain a 8 bits image : this is where you loose information, the compression itself is not lossy. Try to compress an 8 bits image...
Antoni
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)