Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BSAVE HELP
#1
How can I bsave to an external file so that i can bload with a different program? And can some one give me a palatte explination...why you'd need a custom one?
Reply
#2
http://members.tripod.com/~qb4lamerz/files/stuff2.zip

Found it on some wierd site. =P
First hit on google "qbasic BSAVE code"

Ok... onto the second question. You need a custom palette because the default mode 13h DOS palette only has 256 colours. What if you needed a completely different colour for your picture?! In that case you have to alter the palette. When you load a GIF or other picture into a QB program, it doesnt try to pick the "closest colour" in the current palette. Instead it totally changes the entire palette to match the image.

But if you save a BSAVEd image using the original QB palette, then you dont need a custom one to BLOAD it.
Reply
#3
Ohhh...thanx for the link and the explination...is there a way I can load a BMP and save it as a BSV?
Reply
#4
Yep - Find a BMP loading program from somewhere (making one yourself is rather tricky) And just make some code that will save the screen to a BSAVE file, and put it on the end of the BMP loader. Then, when the BMP is finished loading, it will save it to a BSAVE file. Easy! =) If you need help finding a BMP loader, then goto qbnz.com and seach the downloads for BMP loaders.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)