Floods a surface with the color.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static void FloodFill(
	Graphics graphics,
	Color color,
	Color boundaryColor,
	Point point
)

Parameters

graphics
Type: System.Drawing..::.Graphics
Graphics in which we will draw.
color
Type: System.Drawing..::.Color
A color.
boundaryColor
Type: System.Drawing..::.Color
The color of the surface border.
point
Type: System.Drawing..::.Point
The coordinates of a starting point.

Remarks

The method fills a surface with the coloru color from a starting point point to borders. The color of the surface borders differences from boundaryColor.

Exceptions

ExceptionCondition
System..::.ArgumentNullException graphics is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also