The base class that the flood fill algorithms inherit from. Implements the basic flood filler functionality that is the same across all algorithms.
More...
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 16 of file AbstractFloodFiller.cs.
◆ AbstractFloodFiller() [1/2]
| BioImager.AbstractFloodFiller.AbstractFloodFiller |
( |
| ) |
|
◆ AbstractFloodFiller() [2/2]
Definition at line 48 of file AbstractFloodFiller.cs.
49 {
50 if (configSource != null)
51 {
52 this.Bitmap = configSource.Bitmap;
53 this.FillColor = configSource.FillColor;
54 this.FillDiagonally = configSource.FillDiagonally; ;
55 this.Tolerance = configSource.Tolerance;
56 }
57 }
◆ PrepareForFloodFill()
| void BioImager.AbstractFloodFiller.PrepareForFloodFill |
( |
Point | pt | ) |
|
|
protected |
Definition at line 87 of file AbstractFloodFiller.cs.
88 {
89 startColor = bitmap.GetPixel((int)pt.X, (int)pt.Y);
90 byteFillColor = new ColorS(fillColor.B, fillColor.G, fillColor.R);
91 bitmapStride = bitmap.Stride;
92 bitmapPixelFormatSize = bitmap.PixelFormatSize;
93 pixelFormat = bitmap.PixelFormat;
94 bitmapBits = bitmap.Bytes;
95 bitmapWidth = bitmap.SizeX;
96 bitmapHeight = bitmap.SizeY;
97 pixelsChecked = new bool[bitmapBits.Length / bitmapPixelFormatSize];
98 }
◆ bitmap
| Bitmap BioImager.AbstractFloodFiller.bitmap |
|
protected |
◆ bitmapBits
| byte [] BioImager.AbstractFloodFiller.bitmapBits = null |
|
protected |
◆ bitmapHeight
| int BioImager.AbstractFloodFiller.bitmapHeight = 0 |
|
protected |
◆ bitmapPixelFormatSize
| int BioImager.AbstractFloodFiller.bitmapPixelFormatSize = 0 |
|
protected |
◆ bitmapStride
| int BioImager.AbstractFloodFiller.bitmapStride = 0 |
|
protected |
◆ bitmapWidth
| int BioImager.AbstractFloodFiller.bitmapWidth = 0 |
|
protected |
◆ byteFillColor
| ColorS BioImager.AbstractFloodFiller.byteFillColor |
|
protected |
◆ fillColor
| ColorS BioImager.AbstractFloodFiller.fillColor = ColorS.FromColor(Color.Black) |
|
protected |
◆ fillDiagonally
| bool BioImager.AbstractFloodFiller.fillDiagonally = false |
|
protected |
◆ pixelFormat
| PixelFormat BioImager.AbstractFloodFiller.pixelFormat |
|
protected |
◆ pixelsChecked
| bool [] BioImager.AbstractFloodFiller.pixelsChecked |
|
protected |
◆ slow
| bool BioImager.AbstractFloodFiller.slow = false |
|
protected |
◆ startColor
| ColorS BioImager.AbstractFloodFiller.startColor |
|
protected |
◆ tolerance
| ColorS BioImager.AbstractFloodFiller.tolerance = new ColorS(25, 25, 25) |
|
protected |
◆ Bitmap
| Bitmap BioImager.AbstractFloodFiller.Bitmap |
|
getset |
Definition at line 77 of file AbstractFloodFiller.cs.
78 {
79 get { return bitmap; }
80 set
81 {
82 bitmap = value;
83 }
84 }
◆ FillColor
| ColorS BioImager.AbstractFloodFiller.FillColor |
|
getset |
Definition at line 59 of file AbstractFloodFiller.cs.
60 {
61 get { return fillColor; }
62 set { fillColor = value; }
63 }
◆ FillDiagonally
| bool BioImager.AbstractFloodFiller.FillDiagonally |
|
getset |
Definition at line 65 of file AbstractFloodFiller.cs.
66 {
67 get { return fillDiagonally; }
68 set { fillDiagonally = value; }
69 }
◆ Tolerance
| ColorS BioImager.AbstractFloodFiller.Tolerance |
|
getset |
Definition at line 71 of file AbstractFloodFiller.cs.
72 {
73 get { return tolerance; }
74 set { tolerance = value; }
75 }
The documentation for this class was generated from the following file: