Reads all the metadata markers (COM and APPn) from a file.
public RasterCollection<RasterMarkerMetadata> ReadMarkers(string fileName)
Public Overloads Function ReadMarkers( _ByVal fileName As String _) As Leadtools.RasterCollection(Of RasterMarkerMetadata)
public Leadtools.RasterCollection<RasterMarkerMetadata> ReadMarkers(string fileName)
- (nullable NSArray<LTRasterMarkerMetadata *> *)readMarkersFromFile:(NSString *)file error:(NSError **)error function Leadtools.Codecs.RasterCodecs.ReadMarkers(String)(fileName)
public:Leadtools.RasterCollection<RasterMarkerMetadata^>^ ReadMarkers(String^ fileName)
fileName
A String containing the input file name.
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 an EXIF file
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;using Leadtools.ImageProcessing.Color;using Leadtools.Svg;using LeadtoolsExamples.Common;void ReadMarkersFromFileExample(string exifFileName){RasterCodecs codecs = new RasterCodecs();RasterCollection<RasterMarkerMetadata> markers = codecs.ReadMarkers(exifFileName);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 ReadMarkersFromFileExample(ByVal exifFileName As String)Dim codecs As RasterCodecs = New RasterCodecs()Dim markers As RasterCollection(Of RasterMarkerMetadata) = codecs.ReadMarkers(exifFileName)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
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
