LICCProfile::GetTagTypeSig

#include "ltwrappr.h"

L_UINT32 LICCProfile::GetTagTypeSig(uTagSig);

Gets the ICC tag type signature of the tag in the ICC profile that has the specified tag signature.

Parameters

L_UINT32 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.

Returns

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.

Required DLLs and Libraries

See Also

Functions

Topics

Example

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; 
} 

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Color Conversion C++ Class Library Help