Leadtools.Codecs Namespace > RasterCodecs Class : ReadMarkersAsync Method |
public IAsyncOperation<IVector<RasterMarkerMetadata>> ReadMarkersAsync( ILeadStream stream )
'Declaration Public Function ReadMarkersAsync( _ ByVal stream As ILeadStream _ ) As IAsyncOperation(Of IVector(Of RasterMarkerMetadata))
'Usage Dim instance As RasterCodecs Dim stream As ILeadStream Dim value As IAsyncOperation(Of IVector(Of RasterMarkerMetadata)) value = instance.ReadMarkersAsync(stream)
public IAsyncOperation<IVector<RasterMarkerMetadata>> ReadMarkersAsync( ILeadStream stream )
function Leadtools.Codecs.RasterCodecs.ReadMarkersAsync( stream )
public: IAsyncOperation<IVector<RasterMarkerMetadata^>^>^ ReadMarkersAsync( ILeadStream^ stream )
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.
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
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(); }
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); }
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
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2