←Select platform

MetadataType Property

Summary
Gets the tagged data type.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public RasterTagMetadataDataType MetadataType { get; } 
@property (nonatomic, assign, readonly) LTRasterTagMetadataDataType metadataType; 
public RasterTagMetadataDataType getMetadataType() 
public: 
property RasterTagMetadataDataType MetadataType { 
   RasterTagMetadataDataType get(); 
} 
MetadataType # get  (CodecsEnumTagsEventArgs) 

Property Value

The tagged data type. Valid values are:

Value Meaning
RasterTagMetadataDataType.Byte Byte
RasterTagMetadataDataType.Ascii Byte in the range of 0 to 255
RasterTagMetadataDataType.SByte Byte used as signed number in the range of -128 to +127
RasterTagMetadataDataType.Undefined Byte, with application-defined usage
RasterTagMetadataDataType.UInt16 Two bytes, unsigned
RasterTagMetadataDataType.Int16 Two bytes, signed
RasterTagMetadataDataType.UInt32 Four bytes, unsigned
RasterTagMetadataDataType.Int32 Four bytes, signed
RasterTagMetadataDataType.Single Four bytes used as a floating point number
RasterTagMetadataDataType.Double Eight bytes used as a double-precision floating point number
RasterTagMetadataDataType.URational Eight bytes, used as a pair of unsigned long integers, where the first number is the numerator and the second is the denominator of a fraction
RasterTagMetadataDataType.Rational Eight bytes, used as a pair of signed long integers, where the first number is the numerator and the second is the denominator of a fraction
Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
 
string tagsFileName; 
IList<RasterTagMetadata> myTags; 
 
void EnumTagsExample(string srcFileName, string destFileName) 
{ 
   RasterCodecs codecs = new RasterCodecs(); 
 
   tagsFileName = srcFileName; 
   myTags = new List<RasterTagMetadata>(); 
 
   codecs.TagFound += new EventHandler<CodecsEnumTagsEventArgs>(codecs_TagFound); 
   codecs.EnumTags(srcFileName, 1); 
   codecs.TagFound -= new EventHandler<CodecsEnumTagsEventArgs>(codecs_TagFound); 
 
   // We read all the tags now, save them to the file 
   Debug.WriteLine("{0} tags read, saving them to the destination file", myTags.Count); 
   codecs.WriteTags(destFileName, 1, myTags); 
 
   // Clean up 
   codecs.Dispose(); 
} 
 
void codecs_TagFound(object sender, CodecsEnumTagsEventArgs e) 
{ 
   Debug.WriteLine("Tag: Id={0}, Count={1}, Type={2}, Cancel={3}", e.Id, e.Count, e.MetadataType, e.Cancel); 
 
   // Read this tag from the file and add it to our collection 
   RasterCodecs codecs = sender as RasterCodecs; 
   RasterTagMetadata tag = codecs.ReadTag(tagsFileName, 1, e.Id); 
   myTags.Add(tag); 
} 
Requirements

Target Platforms

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

Leadtools.Codecs Assembly

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