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 / Copy bitmap 1,0... then use the input command

Author
Message
KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 13th Dec 2007 19:18
For some reason, when I do this:



The "type your input here" shows up fine over the bitmap, but whenever I type anything, it just makes a black box where the text should be. Is this normal? Is there some way that I could have the bitmap still be there, but the text shows up?

A screen is attached.


A signature has modded your eraser because of it's many resolutions.
Wait, that's not right...

Attachments

Login to view attachments
LBFN
18
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 13th Dec 2007 19:39
Hi kyp,

Just before the input line, set your text foreground and background colors, like this:

ink rgb(255,0,0),rgb(255,255,255)

[This example gives red text over a white background.]

Also, couldn't you just load the bitmap directly to screen 0?

LB
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 13th Dec 2007 20:34
It shouldn't make a difference, but you should do a Set Current Bitmap 0 before you delete bitmap 1.

Loading an image into Bitmap 1 automatically sets the current bitmap to 1, so you should really point it back to 0 before doing anything else.

But at the end of the day, LBFN is right - you should load it straight into bitmap 0 and you wouldn't have to copy it:

load bitmap "mybitmap.bmp",0

TDK_Man

KYP
20
Years of Service
User Offline
Joined: 5th May 2005
Location: 01110000
Posted: 28th Dec 2007 00:16
I just saw this thread and realized I had forgotton to say thanks. So, thanks! It works fine now.


A signature has modded your eraser because of it's many resolutions.
Wait, that's not right...

Login to post a reply

Server time is: 2025-06-02 10:12:44
Your offset time is: 2025-06-02 10:12:44