DicomObjects Reference
DicomObjects Reference / DicomLabel Object / Rescale Method
The image displayed within a DicomViewer to use as the basis of the new dimensions
In This Topic
    Rescale Method
    In This Topic
    Description
    Rescales a label to a new frame of reference
    Syntax
    Visual Basic
    Public Sub Rescale( _
       ByVal Image As DicomImage, _
       ByVal NewScaleMode As doScaleMode _
    ) 
    Parameters
    Image
    The image displayed within a DicomViewer to use as the basis of the new dimensions
    NewScaleMode
    ValueDescription
    doLabelScale3DUsed to specify points in 3D space using images' frame of reference
    doLabelScaleCellDimensions are in the coordinate system used by DICOM in presentation states, where (0.0,0.0) represents the top left corner of the display area, and (1.0,1.0) represents the bottom right
    doLabelScaleCell1000Like Cell, but the corners are (0,0) and (1000,1000)
    doLabelScaleImageDimensions are in image pixels
    doLabelScaleOutputDimensions are in screen or other output device pixels and are unaffected by the zooming of the image
    Remarks
    The purpose of the this method is to scale images which have been drawn freehand in a DicomViewer’s frame of reference to the images or image “cells” contained within it.
    This method is used to allow freehand additions to be added to an image, with or without the RotateModeWithImage property being set.  If ImageTied is true, then the zoom, scrolling and orientation of the label are all adjusted so that it may be added to the given image’s Labels property, and will display as drawn, but will subsequently move correctly with the image.
    See Also