DicomObjects Reference
DicomObjects Reference / DicomViewer Object / ImageIndex Property
The location of interest in the control.
The location of interest in the control.
ImageIndex Property
Description
Translates a cursor position to an image number
Property type
Read-only property
Syntax
Visual Basic
Public Property ImageIndex( _
   ByVal x As Single, _
   ByVal y As Single _
) As Integer
Parameters
x
The location of interest in the control.
y
The location of interest in the control.
Return Type
The units used for x and y are the same as are sent to the MouseDown and MouseMove events, enabling easy identification of the location clicked by the user.
Note that an image cell is identified, rather than an image, so the ImageIndex returns an appropriate image even if a point is given within the cell, but outside the image actually displayed.
See Also