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.

DarkBASIC Discussion / Can't get my image to save

Author
Message
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 26th Jan 2006 16:03
Everytime I save my image guess what it saves as blackness?
Why is it doing this?
No media needed code included below:
I know you need to save it has a .bmp I haven't changed the input string cause I got bigger fish to fry.



Programming is fun with DarkBASIC!
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Jan 2006 16:30
DarkBasic does not support the .ico format for saving. Check the DBC features for a complete list.

http://darkbasic.thegamecreators.com/?f=features#formats

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 26th Jan 2006 16:43
I know that I tried it and it didn't work, it saves as black when I try to get it to save as a bitmap afterwards still not working.

Programming is fun with DarkBASIC!
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 26th Jan 2006 16:44
I can't even get it to save any way!!

Programming is fun with DarkBASIC!
Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Jan 2006 19:41
aaaah I see where the mistake is(i think)...

Get image gets a part of the current bitmap. However, sprites aren't part of a bitmap. Therefor, sprites aren't copied to the image.

To solve this, use paste sprite spr, x, y to paste a sprite to the current bitmap. This way, you'll be able to get it's data.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Computer Nerd
20
Years of Service
User Offline
Joined: 25th Jan 2005
Location: What do you care?
Posted: 26th Jan 2006 20:57
I'm glad that problems over! Thanks alot Sven B didn't know that command existed!

Programming is fun with DarkBASIC!

Login to post a reply

Server time is: 2025-05-23 17:09:25
Your offset time is: 2025-05-23 17:09:25