Performs a flood-fill starting at x,y coordinates. newAlpha is the transparent value used to fill the area.

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

Syntax

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

Parameters

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

Examples

CopyC#
// assuming X,Y = mouse coordinates, makes the area transparent
ieViewer1.Image.CastAlpha( ieViewer1.Image.XClientToBitmap(X), ieViewer1.Image.YClientToBitmap(Y), 0,0);

See Also