ImageMan ActiveX Control Version 8
Select Event
See Also  Example  Send comments on this topic.
X1

The coordinates of the upper left corner of the users selection. X1 and Y1 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

Y1

The coordinates of the upper left corner of the users selection. X1 and Y1 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

X2

The coordinates of the bottom right corner of the users selection. X2 and Y2 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

Y2

The coordinates of the bottom right corner of the users selection. X2 and Y2 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

Glossary Item Box

Description

Occurs when the user selects a portion of the image by clicking and dragging and the Select property is set to TRUE.

Syntax

Visual Basic
Public Event Select( _
   ByVal X1 As Single, _
   ByVal Y1 As Single, _
   ByVal X2 As Single, _
   ByVal Y2 As Single _
)

Parameters

X1

The coordinates of the upper left corner of the users selection. X1 and Y1 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

Y1

The coordinates of the upper left corner of the users selection. X1 and Y1 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

X2

The coordinates of the bottom right corner of the users selection. X2 and Y2 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

Y2

The coordinates of the bottom right corner of the users selection. X2 and Y2 are always expressed in terms of the coordinate system set by the ScaleHeight, ScaleWidth, ScaleLeft and ScaleTop properties of the object.

Example

(Visual Basic)Copy Code
' Enabled the user to select an area of the image and copy the selected
' Portion onto the clipboard. The Select property must be set to True.

Sub ImageControl1_Select(ByVal X1 As Single, ByVal Y1 As Single, ByVal X2 As Single, ByVal Y2 As Single)
    ' Set the Src properties to the portion the user selected
    ImageControl1.SrcLeft = X1
    ImageControl1.SrcTop = Y1
    ImageControl1.SrcRight = X2
    ImageControl1.SrcBottom = Y2

    ' Copy the selected portion to the clipboard
    ImageControl1.ImageCopy
End Sub

See Also

© 2014 Data Techniques Inc. All Rights Reserved.