Retrieves the attributes of the overlay at the specified index.
#include "ltdic.h"
L_UINT16 LDicomDS::GetOverlayAttributes(uOverlayIndex, pOverlayAttributes,uStructSize, pGroupNumber, pIsOverlayInDataset, uFlags)
The index of the overlay for which to get the attributes.
Pointer to a structure to be updated with the overlay attributes.
Size of the OVERLAYATTRIBUTES structure. Pass sizeof(OVERLAYATTRIBUTES).
Pointer to a variable to be updated with the group number for this overlay.
Pointer to a variable to be set to TRUE if the overlay data exists inside this dataset and set to FALSE if the if the overlay data is in another dataset.
Reserved for future use. Pass 0.
Value | Meaning |
---|---|
0 | The function was successful. |
> 0 | An error occurred. Refer to Return Codes. |
This function will retrieve the attributes of an overlay and store their values in the structure pointed to by pOverlayAttributes.
pOverlayAttributes->uStructSize will be set to the value of the parameter uStructSize.
Most of the members of the structure pOverlayAttributes are based on the "Overlay Plane Module Attributes" in the DICOM standard.
If the overlay data is embedded in the "Image Pixel Data" (7FE0,0010), the flag OVERLAY_USEBITPLANE will be set inside pOverlayAttributes->uFlags. If this flag is not set then the overlay data is stored in the "Overlay Data" (60xx,3000) element and in this case you can call LDicomDS::GetOverlayBitmap to get the data for that overlay.
pOverlayAttributes-> ptOrigin will hold the value of the "Overlay Origin" (60xx,0050) element, however the upper left pixel of the image will have the coordinate 0\0, instead of 1\1( as in the DICOM standard).
This function will always set pOverlayAttributes->crColor to black.
For multi-frame overlays, this function will update pOverlayAttributes->nNumFramesInOverlay with the value of "Number of Frames in Overlay" (60xx,0015) element and pOverlayAttributes-> uImageFrameOrigin with the value of "Image Frame Origin" (60xx,0051) element.
pOverlayAttributes-> szActivationLayer will be updated with the value of the element "Overlay Activation Layer" (60xx,1001)
Because DICOM uses "Repeating Groups" to represent multiple overlays, pGroupNumber is useful in knowing under which group number this overlay exists.
Win32, x64
For an example, refer to LDicomDS::GetOverlayBitmap.
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