#include "Ltdic.h"
L_LTDIC_API L_VOID L_DicomGetInfoDS(hDS, pnClass, pnFlags)
Gets information about the file.
A DICOM handle.
Pointer to an IOD Class constant which determines the class of information stored in the file. For a list of default IOD Module Constants, refer to IOD Module Constants.
Meta-header flags and Transfer Syntax flags that indicate file characteristics. Possible values for the Meta-header flags are:
Value | Meaning |
---|---|
DS_METAHEADER_PRESENT | [0x0001] The header is present. |
DS_METAHEADER_ABSENT | [0x0002] The header is absent. |
Value | Meaning |
---|---|
DS_LITTLE_ENDIAN | [0x0004] Byte order is Little Endian. |
DS_BIG_ENDIAN | [0x0008] Byte order is Big Endian. |
DS_IMPLICIT_VR | [0x0010] The Value Representation is implicit. |
DS_EXPLICIT_VR | [0x0020] The Value Representation is explicit. |
DS_LITTLE_ENDIAN | DS_IMPLICIT_VR | Little Endian Byte Order/Implicit Value Representation |
DS_LITTLE_ENDIAN | DS_EXPLICIT_VR | Little Endian Byte Order/Explicit Value Representation |
DS_BIG_ENDIAN | DS_EXPLICIT_VR | Big Endian Byte Order/Explicit Value Representation |
Any of the available Meta-header flags given above may be combined with any of the available values or combinations of values for the Transfer Syntax flags given above. For example, you may combine DS_METAHEADER_ABSENT with DS_EXPLICIT_VR, or you may combine DS_METAHEADER_PRESENT with DS_BIG_ENDIAN | DS_EXPLICIT_VR, etc.
None.
Required DLLs and Libraries
Win32, x64, Linux.
This example displays the Data Set information
L_INT DicomGetInfoDSExample(L_VOID)
{
HDICOMDS hDS;
pDICOMIOD pIOD;
L_UINT32 nClass;
L_UINT16 nFlags;
L_TCHAR szUnknown[]=TEXT("Unknown");
L_TCHAR *p;
L_UINT16 nRet;
hDS = L_DicomCreateDS(NULL);
nRet = L_DicomLoadDS(hDS, MAKE_IMAGE_PATH(TEXT("Image1.dcm")), 0);
if (nRet != DICOM_SUCCESS)
{
L_DicomFreeDS(hDS);
return nRet;
}
L_DicomGetInfoDS(hDS, &nClass, &nFlags);
pIOD = L_DicomFindClassIOD(nClass);
if (pIOD != NULL)
{
p = pIOD->pszName;
}
else
{
p = szUnknown;
}
MessageBox(NULL, p, TEXT("Notice"), MB_OK);
L_DicomFreeDS(hDS);
return DICOM_SUCCESS;
}
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