public void DeleteSignature(
DicomElement signatureItem
)
public:
void DeleteSignature(
DicomElement^ signatureItem
)
signatureItem
The Digital Signatures Sequence Item that corresponds to the Digital Signature to be removed from the Data Set. To remove all the Digital Signatures in the entire Data Set, set this parameter to null.
Call this method to remove a single Digital Signature by specifying the corresponding Digital Signatures Sequence Item. The method will delete the specified item from the Data Set. The Message Authentication Code (MAC) Parameters Sequence Item that was referenced by the deleted Digital Signatures Sequence Item will also be deleted if it is not referenced by a Digital Signatures Sequence Item anymore. Call this method to remove all the Digital Signatures that exist in the Data Set by passing null to the method. In this case, all the MAC Parameters Sequence (4FFE,0001) and the Digital Signatures Sequence (FFFA,FFFA) Data Elements that exist in the Data Set will be deleted.
using Leadtools;
using Leadtools.Dicom;
public void FindSignature()
{
string dicomFileName = Path.Combine(LEAD_VARS.ImagesDir, "DICOM", "image3.dcm");
//Make sure to initialize the DICOM engine, this needs to be done only once
//In the whole application
DicomEngine.Startup();
using (DicomDataSet ds = new DicomDataSet())
{
//Load DICOM File
ds.Load(dicomFileName, DicomDataSetLoadFlags.None);
string signatureUID = "1.2.840.114257.0.130573664";
// Search the whole Data Set for the Digital Signature with the
// specified Digital Signature UID
DicomElement signatureItem = ds.FindSignature(signatureUID);
if (signatureItem != null)
{
ds.DeleteSignature(signatureItem);
Console.WriteLine("Sample: The Digital Signature was found and got deleted.");
}
else
{
Assert.Fail("signatureItem is null");
Console.WriteLine("Sample: The Digital Signature could not be found.");
}
}
DicomEngine.Shutdown();
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images";
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document