DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomLabel Class / Adjust Method
Which corner of the label to adjust
The distance to move that corner
The viewer in which the image is displayed
The index of the image, on which the label is displayed, within the viewer



In This Topic
    Adjust Method
    In This Topic
    Move or resize a label defined offset where the offset is defined in screen pixel units
    Syntax
    'Declaration
     
    
    Public Sub Adjust( _
       ByVal Where As ContentAlignment, _
       ByVal Offset As SkiaSharp.SKSize, _
       ByVal Viewer As DicomViewer, _
       ByVal Index As Integer _
    ) 
    'Usage
     
    
    Dim instance As DicomLabel
    Dim Where As ContentAlignment
    Dim Offset As SkiaSharp.SKSize
    Dim Viewer As DicomViewer
    Dim Index As Integer
     
    instance.Adjust(Where, Offset, Viewer, Index)
    public void Adjust( 
       ContentAlignment Where,
       SkiaSharp.SKSize Offset,
       DicomViewer Viewer,
       int Index
    )
    public:
    void Adjust( 
       ContentAlignment Where,
       SkiaSharp.SKSize Offset,
       DicomViewer^ Viewer,
       int Index
    ) 

    Parameters

    Where
    Which corner of the label to adjust
    Offset
    The distance to move that corner
    Viewer
    The viewer in which the image is displayed
    Index
    The index of the image, on which the label is displayed, within the viewer
    Remarks
    This method is typically used to provide a means to "edit" labels by adjusting their corners. If Where is DicomObjects.Enums.ContentAlignment.MiddleCenter then the label is moved with no re-sizing.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also