DicomObjects Reference
DicomObjects Reference / DicomViewer Object / ImageYPosition Method
The location of interest in the control.
The location of interest in the control.
In This Topic
    ImageYPosition Method
    In This Topic
    Description
    Translates display area corrdinates to image pixel (Y) position
    Syntax
    Visual Basic
    Public Function ImageYPosition( _
       ByVal x As Single, _
       ByVal y As Single _
    ) As Single
    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