DicomObjects.NET.V8
DicomObjects Namespace / DicomLabel Class / Rescale Method / Rescale(DicomViewer,Int32,ScaleMode) Method
The viewer the label is currently being shown on
The index of the image within that viewer to which the label is intended to be applied
The new ScaleMode property for the label



In This Topic
    Rescale(DicomViewer,Int32,ScaleMode) Method
    In This Topic
    Transform a label from viewer coordinates to the chosen image scaling type
    Syntax
    'Declaration
     
    Public Overloads Sub Rescale( _
       ByVal Viewer As DicomViewer, _
       ByVal Index As Integer, _
       ByVal NewScaleMode As ScaleMode _
    ) 
    'Usage
     
    Dim instance As DicomLabel
    Dim Viewer As DicomViewer
    Dim Index As Integer
    Dim NewScaleMode As ScaleMode
     
    instance.Rescale(Viewer, Index, NewScaleMode)
    public void Rescale( 
       DicomViewer Viewer,
       int Index,
       ScaleMode NewScaleMode
    )
    public:
    void Rescale( 
       DicomViewer^ Viewer,
       int Index,
       ScaleMode NewScaleMode
    ) 

    Parameters

    Viewer
    The viewer the label is currently being shown on
    Index
    The index of the image within that viewer to which the label is intended to be applied
    NewScaleMode
    The new ScaleMode property for the label
    Remarks

    This method does not actually remove the label from the viewer's ccollection (if it were even a member), and does not actually add it to the image's Labels collection, though that is what a developer would normally do immediately after this method.

    The label's coordinates are manipulated, so that after such a change, it should appear completely unchanged in size and position, but with a different "base"

    This overload checks whether the labels is part of the image's Labels collection and if so, handles as an image-related label, but if it is not a member of that collection, then it is treated as viewer-related.

    Requirements

    Target Platforms: .NET CLR 3.5 or higher

    See Also