DicomObjects Reference
DicomObjects Reference / DicomImage Object / OriginY Property
In This Topic
    OriginY Property
    In This Topic
    Description
    Position of top-left corner within the control's coordinate system
    Property type
    Read-only property
    Syntax
    Visual Basic
    Public Property OriginY As Single
    Remarks

    When relating mouse events to images, it is necessary to know the position of an image within the control displaying it, and these properties provide that information.  They represent the location of the top left of the “cell” displaying the image.

    In order to locate the image occupying a given location, use the ImageIndex method of the control.

    The top left of the image “cell” may not correspond with the top left point of the image displayed if the image has been scrolled - see ActualScrollX and ActualScrollY for more information. Also, in many cases the ImageXPosition and ImageYPosition methods provide a simple method of calculating image pixel positions.

    See Also