Click here to Skip to main content
15,891,184 members
Articles / Desktop Programming / MFC

QuickFill: An Efficient Flood Fill Algorithm

Rate me:
Please Sign up or sign in to vote.
4.84/5 (71 votes)
12 Mar 200413 min read 527.8K   12K   103  
Design and implementation of efficient flood fill algorithms.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by QuickFillDemo.rc
//
#define IDD_ABOUTBOX                    100
#define IDR_MAINFRAME                   128
#define IDR_BITMAPTYPE                  129
#define IDB_MASK1                       133
#define IDB_MASK2                       134
#define IDB_MASK10                      135
#define IDB_MASK11                      136
#define IDB_MASK3                       137
#define IDB_MASK7                       138
#define IDB_MASK9                       139
#define IDB_MASK8                       140
#define IDB_MASK4                       141
#define IDB_MASK5                       142
#define IDB_MASK6                       143
#define IDD_MASKS                       144
#define IDB_MASK12                      146
#define IDB_MASK13                      147
#define IDB_MASK14                      148
#define IDB_MASK15                      149
#define IDB_MASK0                       150
#define IDC_COMBO_MASKS                 1014
#define IDC_RECT                        1016
#define ID_MAG                          32771
#define ID_DEMAG                        32772
#define ID_OPENPATTERN                  32773
#define ID_SLOWMODE                     32774
#define ID_PATTERNCLEARCOLOR            32775
#define ID_FILLCOLOR                    32776
#define ID_CLOSEPATTERN                 32777
#define ID_VIEW_MAG1                    32778
#define ID_VIEW_MAG2                    32779
#define ID_VIEW_MAG3                    32780
#define ID_VIEW_MAG4                    32781
#define ID_VIEW_MAG5                    32782
#define ID_VIEW_MAG6                    32783
#define ID_VIEW_MAG7                    32784
#define ID_VIEW_MAG8                    32785
#define ID_VIEW_MAG9                    32786
#define ID_VIEW_MAG10                   32787
#define ID_FILLMASK                     32788
#define ID_SHOWREVISIT                  32789
#define ID_INDICATOR_POS                59142

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS                     1
#define _APS_NEXT_RESOURCE_VALUE        151
#define _APS_NEXT_COMMAND_VALUE         32790
#define _APS_NEXT_CONTROL_VALUE         1017
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Software Developer (Senior)
United States United States
I am a senior software engineer who has been designing and developing software for many years, mostly in C/C++. You might say that I think in code; which is why I am passionate about my first rule of coding: “First do no harm”. So if I get carried away in my explanations, please realize that it is just part of my personality. I enjoy learning new things and, when I have the time, passing that knowledge onto others.

Comments and Discussions