Performs a flood-fill starting at specified coordinates.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void CastColor(
	int x,
	int y,
	IERGB newColor,
	int tolerance
)
Public Sub CastColor ( _
	x As Integer, _
	y As Integer, _
	newColor As IERGB, _
	tolerance As Integer _
)
public:
void CastColor(
	int x, 
	int y, 
	IERGB newColor, 
	int tolerance
)

Parameters

x
Int32
Flood-fill starting horizontal position.
y
Int32
Flood-fill starting vertical position.
newColor
IERGB
The color used to paint.
tolerance
Int32
Specifies the maximum difference from the starting pixel (0=no tolerance, pixels must be equals).

Examples

CopyC#
// assuming X,Y = mouse coordinates, paints points to red
ieViewer1.Image.CastColor(ieViewer1.Image.XClientToBitmap(X), ieViewer1.Image.YClientToBitmap(Y), new IERGB(255,0,0), 0);

See Also