Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / finding and loading bitmaps

Author
Message
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 23rd Oct 2005 19:33
Well this is kind of new to me. I have a project folder for my creation which when viewing in C drive shows only the bitmpaps chosen to view and none of the executables. Under the DP Pro file finder within the project, I have the programs relevant to the project underway but no sign of the bitmaps.

I set a command to load the first bitmap, "name" as ".bmp" as `1` but it cannot load. So using the program to find bitmaps available to the project, the return came as none.

As far as I am aware the bitmap is in the relevant project folder and am at a loss as to why it will not load.



So I don't know if something is wrong with the filing system, given what I said above to begin with, or if somehow the bitmap needs to be programmed for an assignment number as the code above requires.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Oct 2005 23:15
Quote: "As far as I am aware the bitmap is in the relevant project folder and am at a loss as to why it will not load."


Both the .dba file (your code) and all the bitmaps you want to load in that code must be in the same place. Or you can open with the path+filename. Like: load bitmap "media\city.bmp",1
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 24th Oct 2005 02:13
Well now I'm definitely missing something. I added the bitmap using "media to include in exe" but it still will not load. Running the program to confirm the existence of the bitmap turned out positive. The program will run, but only without the bitmap... I get a runtime error telling me it won't load.

I tried with and without the path+filename



So any ideas? I also tried image but the bitmap is ignored altogether.
The bitmap has been borrowed from somewhere, do I perhaps need to size it? But just to get it loaded would be a start.

Finally the bitmap and source code are definitely in the same folder.
Help appreciated.

I wonder if Grog's avatar outruns mine?
Sardine
19
Years of Service
User Offline
Joined: 5th Sep 2005
Location: U K
Posted: 24th Oct 2005 02:25
Argh, I meant to add that something interesting is that if I have the check for bitmap running the program runs telling me that the bitmap is present, the information is superimposed over the code Print commands.

So the code looks like


Both programs run simultaneous
In other words, with the checker running at the same time as the source code, all the PRINT works. But rem'ing the bitmap check, the bitmap simply does not appear. Without the bitmap check, the bitmap won't load under the run-time error.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 24th Oct 2005 22:45
Try using "set current bitmap 1". It will change the current bitmap to 1, meaning your bitmap will appear.
Another option:
using "copy bitmap 1,0" will copy the bitmap to the screen.

Bitmap 0 is always the default screen. Even when 3D rendering, the images are always rendered to bitmap 0.

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2024-11-27 14:34:12
Your offset time is: 2024-11-27 14:34:12