Qbasicnews.com
Loading a 16 bit bmp - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: Loading a 16 bit bmp (/thread-9141.html)



Loading a 16 bit bmp - QbBasta - 04-11-2006

How can i load a 16 bit image i fb.. Bload won't work.
Thx


Loading a 16 bit bmp - Anonymous - 04-12-2006

wellll... maybe you should show some code how you tried to do this.


Loading a 16 bit bmp - Pritchard - 04-12-2006

Here, this works. I'm punishing you by giving you the answer:

Code:
screen 20, 16
dim image as ubyte ptr
image = imagecreate(100, 100)
bload "image.bmp", image
put (0, 0), image, pset



Loading a 16 bit bmp - QbBasta - 04-13-2006

that's not my issue..
Well anyway i sorted it out.
When saving the bmp in photoshop you have to save it as a 24 bit image, not a 16 bit.. That was the problem, not how you use the command bload


Loading a 16 bit bmp - Pritchard - 04-13-2006

So it was how to load a 24-bit bmp then. :rotfl:


Loading a 16 bit bmp - QbBasta - 04-13-2006

no. I'm i 16 bpp mode i fb.
For some reason bload won't load bmp's save in photoshop (i have only tried that one) as 16 bits images.
If you however save them as 24 bit's images and load them in fb (using 16 bpp) it will work..
Bug?


Loading a 16 bit bmp - na_th_an - 04-13-2006

No. 16 bpp BMPs is just not a standard format.