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 bool FloodFill(
	Graphics graphics,
	Color color,
	Color boundaryColor,
	int x,
	int y
)

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.
x
Type: System..::.Int32
X-coordinate of a starting point.
y
Type: System..::.Int32
Y-coordinate of a starting point.

Remarks

The method fills a surface with the color color from a starting point x, y 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