CreateLayer method (ILEADDicomDS Interface)

VB.NET example

C# example

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short CreateLayer();

Overview

Refer to Working with DICOM Annotations

Remarks

The CreateLayer method creates a new layer by adding a new Item to the "Graphic Layer Sequence" (0070,0060) under the "Graphic Layer Module".

The new layer will be created based on the values of the properties specified by the LayerAttributes property These properties should be set to the desired values before calling the method. The index of the newly created layer can be obtained by accessing the NewLayerIndex property.

The method will fail and return DICOM_ERROR_PARAMETER if a layer with the same name as the new layer already exists in the Data Set.

See Also

Elements:

LayerAttributes property, NewLayerIndex property, GetLayerAttributes method, SetLayerAttributes method, RemoveLayer method, GetLayerIndex, FindLayerItem method, SetLayerName method.

Topics:

ILEADDicomDS Interface, IDicomLayerAttributes Interface

 

Dicom Annotations: Layers