Qbasicnews.com

Full Version: BSAVE BMPs, lillo?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How about it?

We can already load them using BLOAD, being able to save them with BSAVE is just a natural step Big Grin
I think someone should make a libary or something which allows us to do that (don't look at me, i haven't got a clue where to begin, i guess i could TRY to port an old qb bmpsaver, but i doubt i could do that without failing miserably).
It's nothing hard..

It would just be nice to have it builtin.. as we already have a BMP loader..
I agree that it would be nice to have built in. What do you say lillo?

-gunder

Anonymous

2 words


"what next"
I expected something like that..

Seeing as BMP loading is already implemented, why not have BMP saving?

It's not like we're asking for a fully working 3D engine that'll bloat any exe with about 100MB..
i think it would be better to have a png or other alpha-channel capable format made bloadable first so people can use the alpha mode easier
PNG requires zlib, thats ~50kb
So, something like this?
Code:
Syntax: BSAVE "filename.bmp", VARPTR(sprite(0))[, length]
1. saves in BLOAD/BMP format depending on if you omit the length parameter
2. To save as a bitmap, sprite() MUST be a GET/PUT format sprite so that BSAVE can extract the width/height
I agree with Z!re, I don't think it would be very hard to add BMP saving. If he doesn't want to add it it's not a big deal.

-gunder
Pages: 1 2