Reads all the metadata markers (COM and APPn) from a stream.
public IList<RasterMarkerMetadata> ReadMarkers(Stream stream)
Public Overloads Function ReadMarkers( _ByVal stream As Stream _) As IList(Of RasterMarkerMetadata)
- (nullable NSArray<LTRasterMarkerMetadata *> *)readMarkersFromStream:(LTLeadStream *)stream error:(NSError **)error public List<RasterMarkerMetadata> readMarkers(ILeadStream stream) public:IList<RasterMarkerMetadata^>^ ReadMarkers(Stream^ stream)
stream
A Stream containing the input file image data.
A collection of RasterMarkerMetadata objects containing the metadata marker data.
This method reads all the metadata markers from a file, and returns a collection of the markers.
For Exif files, this metadata collection will contain all the Exif and GPS comments, stored in APP1. It will also contain the audio information stored in APP2.
If the file contains no marker, then this method will return an empty collection.
This example will read all the markers from a stream that contains an EXIF file data
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;using Leadtools.Svg;using LeadtoolsExamples.Common;void ReadMarkersFromStreamExample(Stream theStream){RasterCodecs codecs = new RasterCodecs();IList<RasterMarkerMetadata> markers = codecs.ReadMarkers(theStream);Console.WriteLine("{0} markers found with the following ID's:", markers.Count);foreach (RasterMarkerMetadata marker in markers)Console.WriteLine(marker.Id);codecs.Dispose();}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingImports Leadtools.ImageProcessing.ColorImports Leadtools.DrawingImports Leadtools.SvgPrivate Sub ReadMarkersFromStreamExample(ByVal theStream As Stream)Dim codecs As RasterCodecs = New RasterCodecs()Dim markers As IList(Of RasterMarkerMetadata) = codecs.ReadMarkers(theStream)Console.WriteLine("{0} markers found with the following ID's:", markers.Count)For Each marker As RasterMarkerMetadata In markersConsole.WriteLine(marker.Id)Next markercodecs.Dispose()End Sub
c#[Silverlight C# Example]using Leadtools;using Leadtools.Codecs;using Leadtools.Examples;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;using Leadtools.Windows.Media;public void ReadMarkersFromStreamExample(Stream inStreamExif){RasterCodecs codecs = new RasterCodecs();RasterCollection<RasterMarkerMetadata> markers = codecs.ReadMarkers(inStreamExif);Debug.WriteLine("{0} markers found with the following ID's:", markers.Count);foreach (RasterMarkerMetadata marker in markers)Debug.WriteLine(marker.Id);}vb[Silverlight VB Example]Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingImports Leadtools.ImageProcessing.ColorImports Leadtools.Windows.MediaPublic Sub ReadMarkersFromStreamExample(ByVal inStreamExif As Stream)Dim codecs As RasterCodecs = New RasterCodecs()Dim markers As RasterCollection(Of RasterMarkerMetadata) = codecs.ReadMarkers(inStreamExif)Debug.WriteLine("{0} markers found with the following ID's:", markers.Count)For Each marker As RasterMarkerMetadata In markersDebug.WriteLine(marker.Id)Next markerEnd Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
