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 / VERY slow point() command

Author
Message
Furiousuk
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location: United Kingdom
Posted: 30th Mar 2003 23:20
I'm writing a program where I want the user to be able to colour a graphic in any way they like but I don't want them to choose from a list - I want them to be able to enter any colour they want.
I've thought of doing this by having one graphic (called, say, test.bmp) and then having the program scan the graphic using the point() command and then re-colour all the pixels of a certain colour into those of another.
The only program I've experienced with this is that when scanning test.bmp using the point() command it becomes really slow.
Is there anyway I can tell the program to scan it all at once, thus speeding up the process?

I thought of turning the graphic into an array using a different program and then, the actual program would simply scan the array and change the colour values there. This certainly is quick but I don't want too many extra arrays cluttering up the program, I really want to be able to change the bitmap on the fly.
Can I do this in DB?
Chiwawa
23
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 31st Mar 2003 00:11
yes...with a DLL...

ive made this example:

Login to post a reply

Server time is: 2026-06-11 14:48:56
Your offset time is: 2026-06-11 14:48:56