Qbasicnews.com

Full Version: How to load .bmp files with RelLib?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I load it into the buffer, like this:

Code:
Texture = RelLoadBMP(VARSEG(VPAGE(0)),0,0,"C:\Texture.BMP" ,Pal$,TRUE

I have the feeling that the coords are wrong. And how would I go about displaying it? I tried RelPCopy.. but all I get is crap
Why not try Z!re's bitmap to bsave converter?

By the way, I agree with your sig. Seems like everyones got a gmail account :/
[off topic] i thought the sig was an OFFER, not an anti-gmail statement. [/off topic]
Quote:I load it into the buffer, like this:

Code:
Texture = RelLoadBMP(VARSEG(VPAGE(0)),0,0,"C:\Texture.BMP" ,Pal$,TRUE

I have the feeling that the coords are wrong. And how would I go about displaying it? I tried RelPCopy.. but all I get is crap

This:
Code:
Texture = RelLoadBMP(VARSEG(VPAGE(0)),0,0,"C:\Texture.BMP" ,Pal$,TRUE


Should be this:
Code:
dim pal as string *768
Texture = RelLoadBMP(VARSEG(VPAGE(0)),0,0,"C:\Texture.BMP" ,Pal,TRUE)

And the Texture val is just a return value to check if it's successfull.

Be sure that your path is right, the coords should work, and it would only load 256 color bmps or 8bit bmps.

Pal$ should be pal.
Ok, thanks Big Grin