BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
BioCore.AbstractFloodFiller Class Referenceabstract

The base class that the flood fill algorithms inherit from. Implements the basic flood filler functionality that is the same across all algorithms. More...

Inheritance diagram for BioCore.AbstractFloodFiller:
BioCore.QueueLinearFloodFiller

Public Member Functions

 AbstractFloodFiller ()
 
 AbstractFloodFiller (AbstractFloodFiller configSource)
 
void FloodFill (Point pt)
 

Protected Member Functions

void PrepareForFloodFill (Point pt)
 

Protected Attributes

Bitmap bitmap
 
ColorS tolerance = new ColorS(25, 25, 25)
 
ColorS fillColor = ColorS.FromColor(Color.Black)
 
bool fillDiagonally = false
 
bool slow = false
 
int bitmapWidth = 0
 
int bitmapHeight = 0
 
int bitmapStride = 0
 
int bitmapPixelFormatSize = 0
 
byte[] bitmapBits = null
 
PixelFormat pixelFormat
 
bool[] pixelsChecked
 
ColorS byteFillColor
 
ColorS startColor
 

Properties

ColorS FillColor [get, set]
 
bool FillDiagonally [get, set]
 
ColorS Tolerance [get, set]
 
Bitmap Bitmap [get, set]
 

Detailed Description

The base class that the flood fill algorithms inherit from. Implements the basic flood filler functionality that is the same across all algorithms.

Definition at line 12 of file AbstractFloodFiller.cs.

Constructor & Destructor Documentation

◆ AbstractFloodFiller() [1/2]

BioCore.AbstractFloodFiller.AbstractFloodFiller ( )

Definition at line 39 of file AbstractFloodFiller.cs.

40 {
41
42 }

◆ AbstractFloodFiller() [2/2]

BioCore.AbstractFloodFiller.AbstractFloodFiller ( AbstractFloodFiller configSource)

Definition at line 44 of file AbstractFloodFiller.cs.

45 {
46 if (configSource != null)
47 {
48 this.Bitmap = configSource.Bitmap;
49 this.FillColor = configSource.FillColor;
50 this.FillDiagonally = configSource.FillDiagonally; ;
51 this.Tolerance = configSource.Tolerance;
52 }
53 }

Member Function Documentation

◆ FloodFill()

void BioCore.AbstractFloodFiller.FloodFill ( Point pt)
abstract

◆ PrepareForFloodFill()

void BioCore.AbstractFloodFiller.PrepareForFloodFill ( Point pt)
protected

Definition at line 83 of file AbstractFloodFiller.cs.

Member Data Documentation

◆ bitmap

Bitmap BioCore.AbstractFloodFiller.bitmap
protected

Definition at line 15 of file AbstractFloodFiller.cs.

◆ bitmapBits

byte [] BioCore.AbstractFloodFiller.bitmapBits = null
protected

Definition at line 26 of file AbstractFloodFiller.cs.

◆ bitmapHeight

int BioCore.AbstractFloodFiller.bitmapHeight = 0
protected

Definition at line 23 of file AbstractFloodFiller.cs.

◆ bitmapPixelFormatSize

int BioCore.AbstractFloodFiller.bitmapPixelFormatSize = 0
protected

Definition at line 25 of file AbstractFloodFiller.cs.

◆ bitmapStride

int BioCore.AbstractFloodFiller.bitmapStride = 0
protected

Definition at line 24 of file AbstractFloodFiller.cs.

◆ bitmapWidth

int BioCore.AbstractFloodFiller.bitmapWidth = 0
protected

Definition at line 22 of file AbstractFloodFiller.cs.

◆ byteFillColor

ColorS BioCore.AbstractFloodFiller.byteFillColor
protected

Definition at line 35 of file AbstractFloodFiller.cs.

◆ fillColor

ColorS BioCore.AbstractFloodFiller.fillColor = ColorS.FromColor(Color.Black)
protected

Definition at line 17 of file AbstractFloodFiller.cs.

◆ fillDiagonally

bool BioCore.AbstractFloodFiller.fillDiagonally = false
protected

Definition at line 18 of file AbstractFloodFiller.cs.

◆ pixelFormat

PixelFormat BioCore.AbstractFloodFiller.pixelFormat
protected

Definition at line 27 of file AbstractFloodFiller.cs.

◆ pixelsChecked

bool [] BioCore.AbstractFloodFiller.pixelsChecked
protected

Definition at line 34 of file AbstractFloodFiller.cs.

◆ slow

bool BioCore.AbstractFloodFiller.slow = false
protected

Definition at line 19 of file AbstractFloodFiller.cs.

◆ startColor

ColorS BioCore.AbstractFloodFiller.startColor
protected

Definition at line 36 of file AbstractFloodFiller.cs.

◆ tolerance

ColorS BioCore.AbstractFloodFiller.tolerance = new ColorS(25, 25, 25)
protected

Definition at line 16 of file AbstractFloodFiller.cs.

Property Documentation

◆ Bitmap

Bitmap BioCore.AbstractFloodFiller.Bitmap
getset

Definition at line 73 of file AbstractFloodFiller.cs.

74 {
75 get { return bitmap; }
76 set
77 {
78 bitmap = value;
79 }
80 }

◆ FillColor

ColorS BioCore.AbstractFloodFiller.FillColor
getset

Definition at line 55 of file AbstractFloodFiller.cs.

56 {
57 get { return fillColor; }
58 set { fillColor = value; }
59 }

◆ FillDiagonally

bool BioCore.AbstractFloodFiller.FillDiagonally
getset

Definition at line 61 of file AbstractFloodFiller.cs.

62 {
63 get { return fillDiagonally; }
64 set { fillDiagonally = value; }
65 }

◆ Tolerance

ColorS BioCore.AbstractFloodFiller.Tolerance
getset

Definition at line 67 of file AbstractFloodFiller.cs.

68 {
69 get { return tolerance; }
70 set { tolerance = value; }
71 }

The documentation for this class was generated from the following file: