Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Angelo: What's the format of a PUT buffer?
#1
Quote:PUT can be used to draw images previously saved by the GET statement.
Could you publish the format of the PUT buffer so it could be built by an user program avoiding drawing to screen and using GET?
Antoni
Reply
#2
I guess it is:

Code:
width   4 bytes (32 bits integer)
height  4 bytes (32 bits integer)
raw image (width * height * bytesperpixel bytes)

So if you are working in an 8 bpp mode, you will have just one integer for width, another one for height and then width * height bytes with the image stored in row-order.

This is just a guess, anyways.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
Nope, it's QB compatible.

Code:
width * 8   2 bytes (16 bit unsigned short)
height      2 bytes (16 bit unsigned short)
raw image   (width * height * bytesPerPixel bytes)
Reply
#4
What Sterling said. Please pay attention that the raw image data is in bytes per pixel, that is, even if you're using SCREEN 1 which is 2bit per pixel, each pixel will take a whole byte into the image.
Also refer to the gfxlib.txt documentation on GET and appendix C for details on the internal pixel formats.
ngelo Mottola - EC++
Reply
#5
This means all QB mode 13 sprites can be reused in FB mode 13 without a change!!!
Antoni
Reply
#6
Exactly. You also got BLOAD that is completely compatible with QB BSAVEd SCREEN 13 images. FB version of BSAVE creates files that are incompatible with QB though - of course FB BLOAD will be able to load both QB and FB BSAVEd blocks.
ngelo Mottola - EC++
Reply
#7
Quote:Exactly. You also got BLOAD that is completely compatible with QB BSAVEd SCREEN 13 images. FB version of BSAVE creates files that are incompatible with QB though - of course FB BLOAD will be able to load both QB and FB BSAVEd blocks.

That's awesome Big Grin

(note to self: learn to RTFM)
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#8
Quote:This means all QB mode 13 sprites can be reused in FB mode 13 without a change!!!

Porting my scroller took 10 mins. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#9
can screen 12 qb bsave'd images be bloaded via fb too?
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#10
Quote:can screen 12 qb bsave'd images be bloaded via fb too?
Sort of... you'd be able to bload them, but you won't be able to PUT them because FB's screen 12 is 8 bits per pixel, while a screen 12 qb bsave'd image will be 4 bits per pixel.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)