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:\LEADTOOLS22\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
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.