DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / CanConvertTo Method
The transfer syntax to test






In This Topic
    CanConvertTo Method
    In This Topic
    Useful method to check if the image can be converted using a different compression specified by the TransferSyntax
    Syntax
    'Declaration
     
    
    Public Function CanConvertTo( _
       ByVal TransferSyntax As System.String _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As DicomImage
    Dim TransferSyntax As System.String
    Dim value As System.Boolean
     
    value = instance.CanConvertTo(TransferSyntax)
    public System.bool CanConvertTo( 
       System.string TransferSyntax
    )
    public function CanConvertTo( 
        TransferSyntax: System.String
    ): System.Boolean; 
    public function CanConvertTo( 
       TransferSyntax : System.String
    ) : System.boolean;
    public: System.bool CanConvertTo( 
       System.string* TransferSyntax
    ) 
    public:
    System.bool CanConvertTo( 
       System.String^ TransferSyntax
    ) 

    Parameters

    TransferSyntax
    The transfer syntax to test

    Return Value

    True is the conversion is possible
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also