DicomObjects.NET.V8
DicomObjects Namespace / DicomViewer Class / ImageIndex Method

The point location of interest in the control.




In This Topic
    ImageIndex Method
    In This Topic
    Identifies the image and pixel positions within it displayed at a particular location in the control
    Syntax
    'Declaration
     
    Public Overridable Function ImageIndex( _
       ByVal p As Point _
    ) As Integer
    'Usage
     
    Dim instance As DicomViewer
    Dim p As Point
    Dim value As Integer
     
    value = instance.ImageIndex(p)
    public virtual int ImageIndex( 
       Point p
    )
    public:
    virtual int ImageIndex( 
       Point p
    ) 

    Parameters

    p

    The point location of interest in the control.

    Return Value

    Index of the Image within the Viewer's Images collection

    Remarks

    If the point identified corresponds with an image cell, ImageIndex returns the index to that image within the viewer's images collection.

    If the point is not within an image cell, all methods return -1.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also