←Select platform

IccTextTagType Class

Summary
Contains the textType tag type data.
Syntax
C#
C++/CLI
Python
public class IccTextTagType : IccTagTypeBase 
public ref class IccTextTagType : public IccTagTypeBase  
class IccTextTagType(IccTagTypeBase): 
Remarks
Example

This example method can be used in creating an "textType" mentioned in the ICC.1:2004-10 specification.

C#
using Leadtools; 
using Leadtools.ColorConversion; 
 
using Leadtools.Codecs; 
 
public string outputIccProfile = Path.Combine(LEAD_VARS.ImagesDir, "IccTextTagType.icc"); 
 
public void IccTextTagTypeExample() 
{ 
   // Load an ICC profile 
   string fileName = Path.Combine(LEAD_VARS.ImagesDir, "InputProfile.icc"); 
   IccProfileExtended iccProfile = new IccProfileExtended(fileName); 
 
   // Define the text data array, the string must be null terminated 
   byte[] data = new byte[4] { (byte)'a', (byte)'b', (byte)'c', (byte)'\0' }; 
 
   // Define the tag type 
   IccTextTagType textTagType = new IccTextTagType(data); 
 
   // Add the new tag to the ICC profile 
   iccProfile.AddTag(textTagType, IccTag.CharTargetTag, IccTagTypeBase.TextTypeSignature); 
 
   // 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.