Reads all the metadata markers (COM and APPn) from a stream.
public Leadtools.RasterCollection<RasterMarkerMetadata> ReadMarkers(
Stream stream
)
Public Overloads Function ReadMarkers( _
ByVal stream As Stream _
) As Leadtools.RasterCollection(Of RasterMarkerMetadata)
public Leadtools.RasterCollection<RasterMarkerMetadata> ReadMarkers(
Stream stream
)
- (nullable NSArray<LTRasterMarkerMetadata *> *)readMarkersFromStream:(LTLeadStream *)stream error:(NSError **)error
public RasterCollection<RasterMarkerMetadata> readMarkers(ILeadStream stream)
function Leadtools.Codecs.RasterCodecs.ReadMarkers(Stream)(
stream
)
public:
Leadtools.RasterCollection<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();
RasterCollection<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 Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Drawing
Imports Leadtools.Svg
Private Sub ReadMarkersFromStreamExample(ByVal theStream As Stream)
Dim codecs As RasterCodecs = New RasterCodecs()
Dim markers As RasterCollection(Of RasterMarkerMetadata) = codecs.ReadMarkers(theStream)
Console.WriteLine("{0} markers found with the following ID's:", markers.Count)
For Each marker As RasterMarkerMetadata In markers
Console.WriteLine(marker.Id)
Next marker
codecs.Dispose()
End Sub
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);
}
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Windows.Media
Public 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 markers
Debug.WriteLine(marker.Id)
Next marker
End Sub
Products |
Support |
Feedback: ReadMarkers(Stream) Method - Leadtools.Codecs |
Introduction |
Help Version 19.0.2017.6.16
|
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.