DicomObjects.NET.V8
DicomObjects Namespace / DicomLabel Class / Rescale Method / Rescale(DicomImage,Size,ScaleMode) Method
The image to which the label is attached
The size of the displayed version of the image (the cell area, or size of the output on which the label has been drawn
The new ScaleMode property for the label



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

    Parameters

    Image
    The image to which the label is attached
    Size
    The size of the displayed version of the image (the cell area, or size of the output on which the label has been drawn
    NewScaleMode
    The new ScaleMode property for the label
    Remarks

    This overload is intended for cases where no viewer is being used - e.g. in a web server rendering images to JPG, PNG etc.

    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"

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also