virtual L_INT LFile::GetPCDResolution(pPCDInfo)
Examines a PhotoCD file to determine which resolutions it contains.
Pointer to the LEAD PCDINFO structure.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Before calling this function, declare a variable for a PCDINFO structure. Then, after calling this function, look at the values in the structure to see which resolutions are available.
The PCDINFO structure is specified as follows in the LTFIL.H file:
typedef struct pcdinfo
{
L_INT resolution[6];
} PCDINFO, *pPCDINFO
The structure contains an array of integers, and the value of each integer can be 0 or 1. The following symbolic constants are defined for use as indexes into the array:
Constant Used as Index | Meaning |
---|---|
L_PCD_BASE_OVER_64 | [0] Resolution 64 x 96 |
L_PCD_BASE_OVER_16 | [1] Resolution 128 x 192 |
L_PCD_BASE_OVER_4 | [2] Resolution 256 x 384 |
L_PCD_BASE | [3] Resolution 512 x 768 |
L_PCD_4BASE | [4] Resolution 1024 x 1536 |
L_PCD_16BASE | [5] Resolution 2048 x 3072 |
Note: More options are available in the LOADFILEOPTION structure.
Win32, x64.
L_INT LFile__GetPCDResolutionExample()
{
L_INT nRet;
LFile LeadFile;
PCDINFO PCDInfo;
LeadFile.SetFileName(MAKE_IMAGE_PATH(TEXT("Img0024.pcd"))) ;
nRet = LeadFile.GetPCDResolution(&PCDInfo);
if(nRet != SUCCESS)
return nRet;
return 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