Gets the ICC tag type signature of the tag in the ICC profile that has the specified tag signature.
#include "ltwrappr.h"
L_UINT32 LICCProfile::GetTagTypeSig(uTagSig);
A value that indicates the signature of the tag for which to get the tag type. For all possible values including the private tag signatures, refer to ICCTAGSIGNATURE.
Value | Meaning |
---|---|
> 0 | A value that indicates the signature of the tag type. This value must be one of the values listed in ICCTAGTYPESIGNATURE, or a private tag type signature. |
< 1 | An error occurred. Refer to Return Codes. |
This example will get back the tag type signature of an ICC tag
L_INT LICCProfile_GetTagTypeSigExample(L_TCHAR* szFileName)
{
L_INT nRet = FAILURE;
LICCProfile IccProfile;
ICCTAGSIGNATURE uTagSig = CalibrationDateTimeTag;
ICCTAGTYPESIGNATURE uTagTypeSig;
// Initialize the ICC Profile
nRet = IccProfile.Initialize ();
if (nRet != SUCCESS)
{
IccProfile.Free ();
return nRet;
}
// Load an ICC Profile that is embedded in an image
nRet = IccProfile.Load (szFileName, NULL);
if (nRet != SUCCESS)
{
IccProfile.Free ();
return nRet;
}
// Fill the ICC Profile with the ICC data loaded from the image
nRet = IccProfile.Fill (IccProfile.GetProfile ()->pData, (L_UINT)(IccProfile.GetProfile()->uDataSize));
if (nRet != SUCCESS)
{
IccProfile.Free ();
return nRet;
}
// Save the ICC Profile into another image
uTagTypeSig = (ICCTAGTYPESIGNATURE)IccProfile.GetTagTypeSig(uTagSig);
if (uTagTypeSig == DateTimeTypeSig )
nRet = SUCCESS;
else
nRet = FAILURE;
// Free the ICC Profile
IccProfile.Free ();
return nRet;
}