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.

Author
Message
fuedone
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location:
Posted: 3rd Nov 2003 08:05
anyone know whewre i can get a darkbasic bitmap editor source, or can someone do a simple one?

[email protected] ass if you wantto talk about something
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Nov 2003 09:36
Make a 2D array the size of the image you want to create. The array will hold the color data of your image.
Dim color_Data(31,31) as dword

So to color the top left corner pixel red, the array would read color_Data(0,0) = rgb(255,0,0)

Actually, now that I think about it, you wouldn't even need the array. Just use your mouse to draw on the screen using the DOT command. Then just find that screenshot snippet code to take a picture and save it.
fuedone
23
Years of Service
User Offline
Joined: 4th Apr 2003
Location:
Posted: 3rd Nov 2003 09:38
than ks for the idea, ill stick with the array though

[email protected] ass if you wantto talk about something
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Nov 2003 09:40
My SaveBitmap() function, plus a few other bits and pieces :

http://developer.thegamecreators.com/?m=codebase_view&i=c6a376253a019691f5fcc97de1c5247a

You need to work in 32 bit mode for it to work correctly.

Login to post a reply

Server time is: 2026-07-26 16:03:56
Your offset time is: 2026-07-26 16:03:56