Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public Class RasterMarkerMetadata Inherits RasterMetadata |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[SerializableAttribute()] public class RasterMarkerMetadata : RasterMetadata |
C++/CLI | |
---|---|
[SerializableAttribute()] public ref class RasterMarkerMetadata : public RasterMetadata |
This example will write different markers to an existing tif file then read them as a test.
Visual Basic | Copy Code |
---|---|
Public Sub RasterMarkerMetadataExample() |
C# | Copy Code |
---|---|
public void RasterMarkerMetadataExample() |
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.
System.Object
Leadtools.RasterMetadata
Leadtools.RasterMarkerMetadata
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family