←Select platform

GetDataType Method

Summary
Gets the RasterCommentMetadataDataType of the specified RasterCommentMetadataType.
Syntax
C#
Objective-C
C++/CLI
Java
Python
+ (LTRasterCommentMetadataDataType)dataTypeForType:(LTRasterCommentMetadataType)type 
public static RasterCommentMetadataDataType getDataType(RasterCommentMetadataType type) 
def GetDataType(self,type): 

Parameters

Return Value

The RasterCommentMetadataDataType for the specified RasterCommentMetadataType.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
 
 
public void CommentsSizeAndTypeExample() 
{ 
	Console.WriteLine("IptcSeparator : {0}", RasterCommentMetadata.IptcSeparator); 
 
	Console.WriteLine("Data type sizes:"); 
	Console.WriteLine("------------------"); 
	Array dataTypes = Enum.GetValues(typeof(RasterCommentMetadataDataType)); 
	foreach (RasterCommentMetadataDataType dataType in dataTypes) 
	{ 
		int size = RasterCommentMetadata.GetDataTypeSize(dataType); 
		Console.WriteLine("{0}: {1} bytes", dataType, size); 
	} 
 
	Console.WriteLine("Comment data types:"); 
	Console.WriteLine("------------------"); 
	Array types = Enum.GetValues(typeof(RasterCommentMetadataType)); 
	foreach (RasterCommentMetadataType type in types) 
	{ 
		RasterCommentMetadataDataType dataType = RasterCommentMetadata.GetDataType(type); 
		Console.WriteLine("{0}: {1}", type, dataType); 
	} 
} 
Requirements

Target Platforms

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

Leadtools Assembly

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