Deletes type 3 empty elements from the dataset
public bool RemoveType3EmptyElements()
Public Function RemoveType3EmptyElements() As Boolean
public:
bool RemoveType3EmptyElements();
true if the function was able to traverse the dataset and maybe removed some items. false if there was a problem identifying the dataset IOD class, or if the IOD class was unknown.
You can remove empty items to save space and minimize the dataset size before sending it.
using Leadtools;
using Leadtools.Dicom;
public void Test_DicomDataSet_RemoveType3EmptyElementsSample()
{
//Make sure to initialize the DICOM engine, this needs to be done only once
//In the whole application
DicomEngine.Startup();
using (DicomDataSet dicomDataset = new DicomDataSet())
{
dicomDataset.Initialize(DicomClassType.DXImageStoragePresentation, DicomDataSetInitializeType.ExplicitVRLittleEndian);
dicomDataset.RemoveType3EmptyElements();
}
DicomEngine.Shutdown();
}
Imports Leadtools
Imports Leadtools.Dicom
Public Sub Test_DicomDataSet_RemoveType3EmptyElementsSample()
'Make sure to initialize the DICOM engine, this needs to be done only once
'In the whole application
DicomEngine.Startup()
Dim dicomDataset As DicomDataSet = New DicomDataSet()
Using (dicomDataset)
dicomDataset.Initialize(DicomClassType.DXImageStoragePresentation, DicomDataSetInitializeType.ExplicitVRLittleEndian)
dicomDataset.RemoveType3EmptyElements()
End Using
DicomEngine.Shutdown()
End Sub
Products |
Support |
Feedback: RemoveType3EmptyElements Method - Leadtools.Dicom |
Introduction |
Help Version 19.0.2017.6.16
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.