DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomDataSet Class / ChangeCharacterSet Method
The new Specific Character Set value
Example

In This Topic
    ChangeCharacterSet Method
    In This Topic
    Change the specific Character Set of a DICOM dataset. All applicable attributes will have its data re-encoded by the new character set
    Syntax
    'Declaration
     
    
    Public Sub ChangeCharacterSet( _
       ByVal NewCharacterSet As System.String _
    ) 
    public void ChangeCharacterSet( 
       System.string NewCharacterSet
    )

    Parameters

    NewCharacterSet
    The new Specific Character Set value
    Example
    DicomDataSet ds = new DicomDataSet("Dataset.dcm");
    string characterSet = "ISO_IR 100";
    ds.ChangeCharacterSet(characterSet);
                        
    // Optionally write the new ds out with the re-encoded attributes
    ds.Write("Dataset_ConvertedCharSet.dcm");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also