←Select platform

IccUnknownTagType Class

Summary
Contains a private tag type data.
Syntax
C#
C++/CLI
Python
public class IccUnknownTagType : IccTagTypeBase 
public ref class IccUnknownTagType : public IccTagTypeBase  
class IccUnknownTagType(IccTagTypeBase): 
Remarks
  • A private signature is used as the signature for this tag type.
Example

This example method can be used in creating a new tag type that does not exist in the ICC.1:2004-10 specification.

C#
using Leadtools; 
using Leadtools.ColorConversion; 
 
using Leadtools.Codecs; 
 
public string outputIccProfile = Path.Combine(LEAD_VARS.ImagesDir, "IccUnknownTagType.icc"); 
 
public void IccUnknownTagTypeExample() 
{ 
   // load an ICC profile 
   string fileName = Path.Combine(LEAD_VARS.ImagesDir, "InputProfile.icc"); 
   IccProfileExtended iccProfile = new IccProfileExtended(fileName); 
 
   // define the unknown tag type signature 
   int unknownSignature = 0x736C6364; 
 
   // define the unknown tag data 
   byte[] data = new byte[3] { 1, 2, 3 }; 
 
   // define the tag type 
   IccUnknownTagType unknownTagType = new IccUnknownTagType(unknownSignature, data); 
 
   // add the new tag to the ICC profile 
   iccProfile.AddTag(unknownTagType, 0x54616746, unknownSignature); 
 
   // generate the new profile ID 
   iccProfile.GenerateProfileId(); 
 
   // update the ICC array with the new changes 
   iccProfile.UpdateDataArray(); 
 
   // write the ICC profile into a new file 
             
   iccProfile.GenerateIccFile(outputIccProfile); 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

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

Leadtools.ColorConversion Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.