Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
RasterMarkerMetadata Class
See Also  Members  
Leadtools Namespace : RasterMarkerMetadata Class




Extends the RasterMetadata class to provide functionality for dealing with marker metadata stored within various image file formats.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class RasterMarkerMetadata 
   Inherits RasterMetadata
Visual Basic (Usage)Copy Code
Dim instance As RasterMarkerMetadata
C# 
[SerializableAttribute()]
public class RasterMarkerMetadata : RasterMetadata 
Managed Extensions for C++ 
[SerializableAttribute()]
public __gc class RasterMarkerMetadata : public RasterMetadata 
C++/CLI 
[SerializableAttribute()]
public ref class RasterMarkerMetadata : public RasterMetadata 

Example

This example will write different markers to an existing tif file then read them as a test.

Remarks

JPEG files contain metadata information in user-defined markers.

The user-defined markers are in the range 0xE0 to 0xFE. These markers can have a maximum size of 0xFFFD, or 65533 bytes.

The markers below 0xE0 are reserved for the encoding of the image and inserting a reserved marker can make a file invalid. Therefore, you should not use reserved markers unless you are well acquainted with markers and image encoding in JPEG files.

TIFF files do not contain markers, however, Leadtools provides a "workaround" for transferring Exif comments from JPEG files to TIFF files, and vice versa. The Exif metadata information from a TIFF file will be loaded as an APP1 marker. Therefore, you can load Exif metadata from an uncompressed file and store it in a compressed Exif file.

You can also take metadata information from a compressed Exif file and store it in an uncompressed Exif file. Please note however, that some information cannot be stored inside uncompressed Exif files. For example, audio data is stored in APP2 markers and there is no built-in support for saving APP2 markers in TIFF files. However, you can still save the audio data yourself, using a custom tag.

Inheritance Hierarchy

System.Object
   Leadtools.RasterMetadata
      Leadtools.RasterMarkerMetadata

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also