DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / IsPresentationStateFor Method / IsPresentationStateFor(DicomImage) Method

The DicomImage to check for its InstanceUID

Example

In This Topic
    IsPresentationStateFor(DicomImage) Method
    In This Topic
    Indicates if the PresentationState is for the specified DicomImage
    Syntax
    'Declaration
     
    
    Public Overloads Function IsPresentationStateFor( _
       ByVal Image As DicomImage _
    ) As System.Boolean
    public System.bool IsPresentationStateFor( 
       DicomImage Image
    )

    Parameters

    Image

    The DicomImage to check for its InstanceUID

    Return Value

    true if the presentationstate matches the image
    Remarks
    The Image's InstanceUID is checked against the value specified in the PresentationState's referenced Image SOP Instance UID field. This method returns true if the two values match, otherwise it returns false.
    Example
    DicomDataSet ds = new DicomDataSet("Presentation_Dataset.dcm");
    DicomImage img = new DicomImage("Image.dcm");
                        
    var matching = ds.IsPresentationStateFor(img); 
                        
    if (matching)
        img.PresentationState = ds;
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also