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 Professional Discussion / Flood or fill command

Author
Message
Vandetta
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 21st Dec 2002 09:32
Is there a command in DBPro or a library someone has made that allows you to flood or fill a region of a bitmap with a certain color. Like the paint bucket tool in Microsoft Paint? Thanks.
n3t3r453r
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Russia
Posted: 21st Dec 2002 10:55
Unfortunately the is no such function in DBpro std libruary Strange... there was such command even in Qbasic! And what prevent u to write your own function? Only laziness may be.
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Dec 2002 19:26
What about using the rectangle command - that creates a filled rectangle ?

Good news everyone! I really am THAT good...
Oh my, yes...
rapscaLLion
21
Years of Service
User Offline
Joined: 29th Aug 2002
Location: Canada
Posted: 21st Dec 2002 20:15
that's not what he means
and no, there is no command for that

Alex Wanuch
aka rapscaLLion
Kousen Dev Progress >> Currently Working On Editors
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 21st Dec 2002 21:52
I was also wondering if there was, but evidently not Seems rather a silly thing 2 miss out, for 2D work at least

* If the apocalypse comes, email me *
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Dec 2002 12:24
Well - a non-rectangular fill takes a lot of processing time.

Good news everyone! I really am THAT good...
Oh my, yes...
Vandetta
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 22nd Dec 2002 13:14
Not to mention a lot of thinking too. It would be easy to write a command that would fill a basic shape like, square, rectangle, circle, etc. But complex shapes would be really difficult and thats what I need it for. Below is an example of a shape I would consider complex, the stars represent the outline.

*** ********
* ***** *
* *
* **** *
* ** * *
*** ********

Vandetta
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 22nd Dec 2002 13:15
LOL nevermind, didnt exactly turn out how I thought it would.

Login to post a reply

Server time is: 2024-05-05 06:10:22
Your offset time is: 2024-05-05 06:10:22