DicomObjects Reference
DicomObjects Reference / DicomLabel Object / AddPoint Method
The co-ordinates of the point to add.
The co-ordinates of the point to add.
In This Topic
    AddPoint Method
    In This Topic
    Description
    Adds a point for polygon and polyline types
    Syntax
    Visual Basic
    Public Sub AddPoint( _
       ByVal x As Single, _
       ByVal y As Single _
    ) 
    Parameters
    x
    The co-ordinates of the point to add.
    y
    The co-ordinates of the point to add.
    Remarks

    This method only affects Label objects where the LabelType is doLabelPolygon or doLabelPolyLine.
    The points are scaled and moved exactly as are TopLeftWidthHeight, i.e. if used a part of a DicomViewer’s Labels collection or if RotateModeWithImage is not set, then they are display pixels, but if RotateModeWithImage is set, and used as part of a DicomImage’s Labels collection, then they are scaled and scrolled with the image pixels, ensuring that the shape produced maintains an exact relationship to the underlying image.

    After points have been added, they may be accessed through the Points property, which may also be used to set the whole array in a single operation.

    See Also