BorderType enum

Border padding strategy types for spatial kernel filtering.

Defines how pixels outside the image boundaries are estimated when applying neighborhood-based operations (like Gaussian blur, Sobel, erosion, dilation).

Inheritance
Available extensions

Values

constant → const BorderType

Pads the border with a constant color value.

  • Behavior: Out-of-bounds pixels are filled with a single color.
  • Layout: [V, V, V | a, b, c, d | V, V, V] (where V is the border value).
  • Typical use cases: Letterboxing, bounding margins, padding before rotations.
replicate → const BorderType

Replicates the outermost border pixel value.

  • Behavior: Extends the edge pixels outward.
  • Layout: [a, a, a | a, b, c, d | d, d, d].
  • Typical use cases: Box blurs, morphological filters, avoiding border dark-halos.
reflect → const BorderType

Reflects the outermost border pixels in reverse order.

  • Behavior: Mirrors pixel values across the boundary edge.
  • Layout: [c, b, a | a, b, c, d | d, c, b].
  • Typical use cases: High-quality Gaussian blur, symmetric filter kernels.
wrap → const BorderType

Wraps the image boundaries around to the opposite side.

  • Behavior: Treats the image as periodic/tiled.
  • Layout: [b, c, d | a, b, c, d | a, b, c].
  • Typical use cases: Tiled texture mapping, Fourier transform padding.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<BorderType>
A constant List of the values in this enum, in order of their declaration.