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:

image\sqrblit.gif Filled property: This specifies the value of the "Graphic Filled" (0070,0024) element (for example, VARIANT_TRUE).

image\sqrblit.gif LayerName property: This property specifies the value of the "Graphic Layer" (0070,0002) element.

image\sqrblit.gif 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.

image\sqrblit.gif 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.

image\sqrblit.gif 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.

image\sqrblit.gif Type property: This property specifies the value of the "Graphic Type" (0070,0023) element (for example, DICOM_GRAPHIC_OBJECT_TYPE_POINT).

image\sqrblit.gif Units property: This property specifies the value of the "Graphic Annotation Units" (0070,0005) element (for example, DICOM_UNIT_PIXEL).