←Select platform

RemoveType3EmptyElements Method

Summary
Deletes type 3 empty elements from the dataset.
Syntax
C#
Objective-C
C++/CLI
public bool RemoveType3EmptyElements() 
- (BOOL)removeType3EmptyElements; 
public: 
bool RemoveType3EmptyElements();  

Return Value

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.

Remarks

You can remove empty items to save space and minimize the dataset size before sending it.

Example
C#
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(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.8.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.