DicomObjects.NET.V8
DicomObjects Namespace / DicomLabel Class / AddPoint Method / AddPoint(Single,Single) Method
The X co-ordinates of the point to add.
The Y co-ordinates of the point to add.



In This Topic
    AddPoint(Single,Single) Method
    In This Topic
    Adds to point to the path used for a polyline or polygon type of DicomLabel.
    Syntax
    'Declaration
     
    Public Overloads Sub AddPoint( _
       ByVal X As Single, _
       ByVal Y As Single _
    ) 
    'Usage
     
    Dim instance As DicomLabel
    Dim X As Single
    Dim Y As Single
     
    instance.AddPoint(X, Y)
    public void AddPoint( 
       float X,
       float Y
    )
    public:
    void AddPoint( 
       float X,
       float Y
    ) 

    Parameters

    X
    The X co-ordinates of the point to add.
    Y
    The Y co-ordinates of the point to add.
    Remarks

    This method only affects Label objects where the LabelType is Polygon or PolyLine.

    The points are scaled and moved exactly as are Top, Left, Width & Height, i.e. if used a part of a DicomViewer’s Labels collection or if ImageTied is false, then they are display pixels, but ImageTied is true, 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.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also