Click or drag to resize
TextureXFloodFill Method
Flood fill the specified block on the specified Texture2D using the specified color.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static void FloodFill(
	this Texture2D texture,
	int x,
	int y,
	int width,
	int height,
	Color color,
	bool apply = true
)

Parameters

texture
Type: Texture2D
The Texture2D to flood fill.
x
Type: SystemInt32
The x coordinate of the block.
y
Type: SystemInt32
The y coordinate of the block.
width
Type: SystemInt32
Width of the block.
height
Type: SystemInt32
Height of the block.
color
Type: Color
Color to apply to pixels in the block.
apply (Optional)
Type: SystemBoolean
If set to apply results.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Texture2D. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also