Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 278 results for
floodfill
- Page 1
floodfill
Programming
Software Development
16 Years Ago
by Amit99531
how to use
floodfill
in c++ give a simple example
Floodfill() problem.
Programming
Software Development
17 Years Ago
by mir_sheely
… screen gets white colored or of different color. The
Floodfill
is creating alot of problem.. I have to use …+31, y+31) ; setcolor(c) ; setlinestyle(0, 1, 1) ;
floodfill
(x+5, x+10, c); circle(x+15, y+15…x, p[0].y) ; setcolor(c) ; setfillstyle(1, c) ;
floodfill
(x+5, x+10, c); //filled the star with the…
floodFill on a Grid
Programming
Software Development
16 Years Ago
by tillaart36
…to implement is that I need to add a
floodFill
like method ([url]http://en.wikipedia.org/wiki/… range(top, bottom): self[x, y].value = value def
floodFill
(self, x, y, landUse): if (x < 0 …something that checks if a cell is visited yet by
floodFill
. Else this # algorithm gets into an infinite loop…
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by tillaart36
…range(self.width): self.grid[x][y].clusterId == -1 def
floodFill
(self, x, y, clusterId, landUse): if (x <… = self.firstFreeCell() clusterId = 0 while freeCell != None: self.
floodFill
(freeCell.x, freeCell.y, clusterId, freeCell.value) freeCell = self.firstFreeCell…
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by mir_sheely
Used Fillpoly instead
Floodfill
, Calculated 10 points of star instead of 5 (in case of
floodfill
(). ) and then made 32 cells with circle and star at different points on the screen and it did marvelous job for me.. Thumbs up for fillpoly(), down with
Floodfill
() .
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by Salem
…-bit OS, complete with a wide range of graphics libraries.
floodfill
() is recursive, massively so. Unless you do something, your default… fix the underlying problem. [url]http://en.wikipedia.org/wiki/
Floodfill
[/url]
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by Luckychap
You are drawing circle from the center(cx,cy) of the square so to fill color outside the circle and in side the square you should use in this way
floodfill
(cx+radius + 2, cy + radius + 2 , color); where radius: radius of the inside circle and color: color to be filled
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by mir_sheely
Thanks for ur reply.. but I reached at the conclusion that
floodfill
should be used at minimum, only then when necessary. Fillpolly is alot better then it..
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by Gribouillis
…algorithms, which are just a particular type of
floodfill
. If you want to mark the cells,…like this one [code=python] class Grid(object): def
floodFill
(self, x, y, landUse): visited = set() self…self.mark = None class Grid(object): markcnt = 0 def
floodFill
(self, x, y, landUse): Grid.markcnt += 1 self…
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by Gribouillis
…def add(self, x, y): ... [/code] Then when you call
floodfill
, instead of passing a new integer clusterId, you pass a…Grid...: def analyse(self): ... cluster = Cluster() while freeCell != None: self.
floodFill
(..., cluster,...) .... [/code] Then your cell would point to the cluster…
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by Gribouillis
…, which generates the cluster [code=python] class Grid(object): def
floodFill
(self, x, y, landUse): visited = set() todo = set([(x, y… def exampleUsage(self, x, y, landUse): for cell in self.
floodFill
(x, y, landUse): doSomething(cell) # do anything you want [/code…
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by tillaart36
…. You can't point out a way that my old
floodFill
method marks the cells that are visited by the method… if I can implement something like this in my old
floodFill
method I would be very grateful. Thanks!
FloodFill in c#
Programming
Software Development
14 Years Ago
by JayshrreeU
Pls help me.
floodfill
in not working in C#. every code is working but following code is not store the image with fillcolor. System.Drawing.Bitmap b0 = System.Drawing.Bitmap.FromHbitmap(hbm0);
Re: floodfill
Programming
Software Development
16 Years Ago
by Salem
Lemme guess You're a TurboC user, yet your OS is XP.
Re: Floodfill with a System.Drawing.Graphics() Object.
Programming
Software Development
14 Years Ago
by Unhnd_Exception
… for creating a flood fill [url]http://www.bobpowell.net/
floodfill
.aspx[/url] It gave me a starting point. If you…
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by mir_sheely
Hmm the problem is that I am a student and limited to these compilers only for learning purpose by the college. Although I can talk to instructor for this problem but sticking with TC is preferred. So please.. why the stack is filling so soon when floofill() is successfully working for x-y<15 but not for x-y>15 ??
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by Salem
There's a whole bunch of free compilers available, so cost is not the issue. The problem is your tutor refuses to leave their comfort zone of teaching the only compiler they know. Very comfortable for them, but increasingly useless to the students who have a hell of a lot of catchup in the real world. > So please.. why the stack is filling so…
Re: Floodfill() problem.
Programming
Software Development
17 Years Ago
by Luckychap
Marked this thread as SOLVED, please
Re: Floodfill() problem.
Programming
Software Development
15 Years Ago
by SHAHEER BANO
Can u please send me the code to draw a ludo board at my hotmail id????
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by tillaart36
Thanks for your reply... but i'm afraid that for tonight I lost it here...can't seem to get it to work and it even gets more messy now. According my teacher the program was fine as I had it...I only needed to figure out how I could add +1 to the area every time a cell has been added to the cluster and too find something for this boundingbox.…
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by Gribouillis
Do as your teacher tells you. There are many ways to program this.
Re: floodFill on a Grid
Programming
Software Development
16 Years Ago
by tillaart36
Hey I fiddled around some more with my code. For the ease of use I made a new program to test the 3 classes: Grid, Cell and Cluster I want to ask if my add method in the Cluster class and the initializing of the Cluster class are set up correctly like this: [code] class Grid(object): def __init__(self, width, height): self.…
Re: FloodFill in c#
Programming
Software Development
14 Years Ago
by CloneXpert
Hi, For posting code pls use the code tags, and provide more information so we can figure out where you got stuck and help you out. Perhaps you should check out first something like this: [URL="http://www.codeproject.com/KB/GDI-plus/floodfillincsharp.aspx"]Flood Fill Algorithms in C#[/URL].
Floodfill with a System.Drawing.Graphics() Object.
Programming
Software Development
14 Years Ago
by Tarkenfire
Okay, so as a project for one of my classes I need to make a basic drawing program in VB that can do three things: [LIST] [*]"Draw" with a brush of some sort [*]Clear the screen [*]Perform a flood-fill (paintbucket action) [/LIST] I decided to do the first two tasks first, and got them to work, but the third task completely …
Re: Floodfill with a System.Drawing.Graphics() Object.
Programming
Software Development
14 Years Ago
by Tarkenfire
Okay, so I finally got around to re-writing this...cept I can't get the "line drawing" thing done now, as the method I used before doesn't work if I implement a bitmap-based system...kinda at a loss for the moment. Here's the code I have written at the moment, any help would be appreciated.: [CODE=VB.NET]Public Class Form1 …
graphics programing in C & c++
Programming
Software Development
17 Years Ago
by prateek_singh
…,13);
floodfill
(331,368,13);
floodfill
(396,355,13);
floodfill
(450,345,13);
floodfill
(510,335,13);
floodfill
(570,325,13);
floodfill
(630,312,13); ///////////////////////////////////////////////////////
floodfill
(20…
10 year old Othello program, help me get it to work?
Programming
Software Development
15 Years Ago
by dumdumsareyum
…) { setfillstyle(SOLID_FILL, WHITE);
floodfill
(150, 300, WHITE);
floodfill
(300, 300, WHITE);
floodfill
(450, 300, WHITE); setfillstyle(SOLID_FILL… blackcount) { setfillstyle(SOLID_FILL, BLACK);
floodfill
(150, 300, WHITE);
floodfill
(300, 300, WHITE);
floodfill
(450, 300, WHITE); delay(750);…
i need u to help me in writing the documentation section of project
Programming
Software Development
15 Years Ago
by bibhu_trekking
…,13);
floodfill
(331,368,13);
floodfill
(396,355,13);
floodfill
(450,345,13);
floodfill
(510,335,13);
floodfill
(570,325,13);
floodfill
(630,312,13); ///////////////////////////////////////////////////////
floodfill
(20…
Prim's Algorithm Implementation on Graph.
Programming
Software Development
12 Years Ago
by zindgi66
…-10,midx - 30,midy+10); //setfillstyle(SOLID_FILL,n10); //
floodfill
(midx,midy,WHITE); /******** for 10 in rectangle ***********/ midx =…10, midx - 30,midy+10); //setfillstyle(SOLID_FILL,n23); //
floodfill
(midx,midy,WHITE); /******** for 23 in rectangle ***********/ midx = …
Please help me in computer graphics project
Programming
Software Development
10 Years Ago
by nanomedo
…lineto(53,349); lineto(40,354); setfillstyle(9,6);
floodfill
(50,325,15); //sd moveto(85,338); lineto(85… lineto(100,330); lineto(85,338); setfillstyle(9,6);
floodfill
(89,325,15); setcolor(15); /*************************/ //home three moveto(…
1
2
3
5
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC