Select a part of the image.

The selected area will be outlined with a white-black animated rectangle if the image is visible inside a IEViewer.

The coordinates refers bitmap pixels.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SelectRectangle(
	int x1,
	int y1,
	int x2,
	int y2,
	IEImage..::..SelOp op
)
Public Sub SelectRectangle ( _
	x1 As Integer, _
	y1 As Integer, _
	x2 As Integer, _
	y2 As Integer, _
	op As IEImage..::..SelOp _
)
public:
void SelectRectangle(
	int x1, 
	int y1, 
	int x2, 
	int y2, 
	IEImage..::..SelOp op
)

Parameters

x1
Int32
Top left x coordinate
y1
Int32
Top left y coordinate
x2
Int32
Bottom right x coordinate
y2
Int32
Bottom right y coordinate
op
IEImage..::..SelOp
If op is Replace, replaces all provious selections. If op is Add, add a new selection.

Examples

CopyC#
Image.SelectRectangle(10,10,100,100,IEImage.SelOp.Replace);
Image.EndSelect();
Image.Negative();

See Also