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 / bitmap problems

Author
Message
Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 06:27
Im trying to load a bitmap, but im getting errors. what am I missing?
Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 06:28
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Jul 2004 06:30 Edited at: 9th Jul 2004 06:32
Do you want the bitmap displayed on screen? If so you will need to make it a sprite I think. ?¿ At least thats what I had to do.

[edit] what are the errors? I have never tried to load a file with 2 . in the name before. It may be confusing it. Also I think load bitmap will only load a .bmp? you may want to use load image command instead.

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 06:33
yes, I was trying to get it displayed on the screen. I will try making it a sprite instead.
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 9th Jul 2004 06:38
Yeah, I'm using DBC and the book says it only loads a .BMP file. I too have never tried loading a file name with two dots in it...
S.

Any truly great code should be indisguishable from magic.
Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 06:40
hmmm...Im going to try loading it as an image.
Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 06:43
I tried this, but I think im confusing myself. this didnt work b the way.

SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 9th Jul 2004 06:45
Just for fun, try renaming the file to abs-sized.jpg and see if that works. If not, it may need to be in BMP format.

Any truly great code should be indisguishable from magic.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Jul 2004 08:13 Edited at: 9th Jul 2004 08:13
what error does it give you when you do this?

load image "abs.sized.jpg",1
wait key

And do you have DBClassic or DBPro?

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 10:49
DBpro

Runtime error 506 - could not load image at line 1
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Jul 2004 11:49

works for me in DBP U5.4 it displays the image to the screen. Make sure you save your project in the same folder as your image file or put the path to the file from where the image file is saved.

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 13:55
YOU ARE AWSOME! OMG YOU DONT KNOW HOW MUCH BETTER I FEEL SEEING THIS ON MY SCREEN.

CHEERS MY FRIEND

(one more thing though, how do I stretch it out a bit more?)
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Jul 2004 15:54 Edited at: 9th Jul 2004 15:55

this will stretch it 10%

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 16:14
few more questions for you LIT.

If I wanted to write to my image, I would need to make it a bitmap correct?
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Jul 2004 16:19
You want to write to that image? Could you explain that a bit more?

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 16:34
what im saying is: If I wanted to...lets say, print things on an image, I would need to make it a bitmap? or can I write things to an image to. Like a menu screen kind of.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Jul 2004 16:45
I'll have to investigate that further later (almost 3 a.m. here) But I always just load more sprites to build the menu and place them over the other sprite (look into sprite priorities) but I think that yes you will need to use a .bmp probably with load bitmap, set current bitmap, and save bitmap for that. As I don't know right off if get image will capture text. I know it will not capture sprites.

Plastico
20
Years of Service
User Offline
Joined: 3rd May 2004
Location:
Posted: 9th Jul 2004 17:09
I should probably call it a night also. nearly 2

Login to post a reply

Server time is: 2024-09-22 16:30:13
Your offset time is: 2024-09-22 16:30:13