Page 1 of 1

bmp loader

Posted: Sun Jan 16, 2005 1:43 pm
by mossy1991
hey everyone
does nybody know a .bmp image loader that is not 20 lines of code long?
i was just wondering as i have bin playing with Qb 4 a while and i'm thinking of making a rpg or other kind of game

Posted: Sun Jan 16, 2005 2:45 pm
by {Nathan}
Uhh... just use freebasic or PP256. If you REALLY want to, convert your .bmps into bsave/bloads, loading bmps for games is WAY to slow :wink:

Posted: Sun Jan 16, 2005 3:03 pm
by Pete
After you make your images as BMPs or GIFs or whatever, you should just convert them to BSAVEs with a small image loader program. Just load the BMP image, then GET it and BSAVE it. Then you can load it in your game quite easily.

Posted: Mon Jan 17, 2005 4:26 am
by Nodtveidt
BMP loaders are more complicated than a couple of lines of code, so expect to see about 20 or so lines of code for a BMP loader. :D You gotta read the header, interpret certain parts of it, load the raster lines one by one, checking for padding bits, etc. But that's nothing...try a JPG loader some day if you think 20 lines are bad. :D