Working with the DicomGraphicObjectAttributes Object
The GraphicObjectAttributes property returns a reference to the DicomGraphicObjectAttributes object. This object exposes the IDicomGraphicObjectAttributes interface which defines the following properties to describe a DICOM graphic layer:
Filled property: This specifies the value of the "Graphic Filled" (0070,0024) element (for example, VARIANT_TRUE).
LayerName property: This property specifies the value of the "Graphic Layer" (0070,0002) element.
PointCount property: This property specifies the value of the "Number of Graphic Points" (0070,0021) element which is used to allocate storage for the arrays specified by the PointsX property and the PointsY property.
PointsX property: This property is an array of the x-coordinates of the points specified by the "Graphic Data" (0070,0022) element. As an example, the values PointsX(0) and PointsY(0) are the x-coordinate and the y-coordinate of the first point.
PointsY property: This property is an array of the y-coordinates of the points specified by the "Graphic Data" (0070,0022) element. As an example, the values PointsX(0) and PointsY(0) are the x-coordinate and the y-coordinate of the first point.
Type property: This property specifies the value of the "Graphic Type" (0070,0023) element (for example, DICOM_GRAPHIC_OBJECT_TYPE_POINT).
Units property: This property specifies the value of the "Graphic Annotation Units" (0070,0005) element (for example, DICOM_UNIT_PIXEL).