Enum Connectivity
- Namespace
- Egami.Operations
- Assembly
- Egami.dll
Which neighbours a flood fill spreads to.
public enum Connectivity
Fields
Eight = 1All eight neighbours, the diagonals too.
Four = 0The four side neighbours: left, right, up and down.
Examples
// Fill the region around (10, 10) whose colors are close to its own, as a paint bucket does.
photo.Apply(ops => ops.FloodFill(new Point(10, 10), Rgba8.White, tolerance: 0.1f), Ct);