Bitmap/Flood fill: Difference between revisions

Content added Content deleted
Line 279: Line 279:
*
*
* This is an implementation of the recursive algorithm. For the sake of
* This is an implementation of the recursive algorithm. For the sake of
* simplicity, instead of reading files in JPEG, PNG, etc., the program
* simplicity, instead of reading files as JPEG, PNG, etc., the program
* read and write Portable Bit Map (PBM) files in plain text format.
* read and write Portable Bit Map (PBM) files in plain text format.
* Portable Bit Map files can also be read and written with GNU GIMP.
* Portable Bit Map files can also be read and written with GNU GIMP.
Line 291: Line 291:
* Note: In order for a program to work properly it is necessary to allocate
* Note: In order for a program to work properly it is necessary to allocate
* enough memory for the program stack. For example, in Microsoft Visual Studio,
* enough memory for the program stack. For example, in Microsoft Visual Studio,
* the / stack option: 134217728 declares a 128MB stack instead of the default
* the option /stack:134217728 declares a 128MB stack instead of the default
* size of 1MB.
* size of 1MB.
*/
*/