DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / OrientationText Method
Specify the format of the returned string

if format = "FRAME", then frame number will be returned.

if format = "ZOOM", then image zoom value will be returned.

if format = "LEFT", or "RIGHT", or "TOP" or "BOTTOM" then corresponding Direction Strings will be returned.

Example

In This Topic
    OrientationText Method
    In This Topic
    Return the Text of DicomLabel of LabelType = special.
    Syntax
    'Declaration
     
    
    Public Function OrientationText( _
       ByVal format As System.String _
    ) As System.String
    public System.string OrientationText( 
       System.string format
    )

    Parameters

    format
    Specify the format of the returned string

    if format = "FRAME", then frame number will be returned.

    if format = "ZOOM", then image zoom value will be returned.

    if format = "LEFT", or "RIGHT", or "TOP" or "BOTTOM" then corresponding Direction Strings will be returned.

    Return Value

    String
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    string frameText = image.OrientationText("FRAME"); // Returns the frame number e.g. 5
    string zoomText = image.OrientationText("ZOOM"); // Returns zoom level e.g. 0.75 
    string leftLabel = image.OrientationText("LEFT"); // Returns "L" or related label e.g. RAI
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also