LICCProfile::GetTagTypeSig

#include "ltwrappr.h"

L_UINT32 LICCProfile::GetTagTypeSig(uTagSig);

L_UINT32 uTagSig;

tag signature

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

Parameter

Description

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

> 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

LTCLR

LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LICCProfile::Free, LICCProfile::Initialize, LICCProfile::Load, LICCProfile::Save, LICCProfile::Fill, LICCProfile::InitHeader, LICCProfile::SetCMMType, LICCProfile::SetDeviceClass, LICCProfile::SetColorSpace, LICCProfile::SetConnectionSpace, LICCProfile::SetPrimaryPlatform, LICCProfile::SetFlags, LICCProfile::SetDevManufacturer, LICCProfile::SetDevModel, LICCProfile::SetDeviceAttributes, LICCProfile::SetRenderingIntent, LICCProfile::SetCreator, LICCProfile::SetDateTime, LICCProfile::Convert2bFixed2bNumberToDouble, LICCProfile::ConvertDoubleTo2bFixed2bNumber, LICCProfile::SetTagData, LICCProfile::GetTagData, LICCProfile::CreateTagData, LICCProfile::DeleteTag, LICCProfile::GenerateFile, LICCProfile::GeneratePointer, LICCProfile::FreeTagType, Class Members

Topics:

Using ICC Profile Functions

 

ICC Profile Functions: Tags

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Color Conversion C++ Class Library Help