AnnDelete method (ILEADDicomDS)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short AnnDelete (short iIndex, long lPage);

Overview

Refer to DICOM Annotation Files.

Remarks

(Medical only) Deletes a page from an annotation file, deletes the entire annotation file, or deletes all annotation files stored in a DICOM data set.

LEAD Annotation files can be saved as private data in a DICOM data set (LEAD native format or binary encoded format). There can be up to 256 private data tags for LEAD annotation files. The AnnDelete method can delete a page from an annotation file, delete the entire annotation file, or delete all annotation files in a DICOM data set.

To delete the third page of the annotation file at index 1:

m_pLEADDICOM1->LoadDS("d:\\work\\images\\a.dic", 0);
m_pLEADDICOM1->AnnDelete(1, 3);

To delete the annotation file at index 1

m_pLEADDICOM1->LoadDS("d:\\work\\images\\a.dic", 0);
m_pLEADDICOM1->AnnDelete(1, -1);

To delete all annotation files and the private creator data element

m_pLEADDICOM1->LoadDS("d:\\work\\images\\a.dic", 0);
m_pLEADDICOM1->AnnDelete(-1, 0);

See Also

Elements:

AnnLoad method, AnnSave method, AnnCount method, AnnContainer property, AnnPrivateCreatorTag property, AnnEntries property

Topics:

Data Sets: Annotation Files