Reads all the metadata markers (COM and APPn) from a stream.
Syntax
Parameters
- stream
- A Stream containing the input file image data.
Return Value
A collection of
RasterMarkerMetadata objects containing the metadata marker data.
Example
This example will read all the markers from a stream that contains an EXIF file data
Visual Basic | Copy Code |
---|
Private Sub ReadMarkersFromStreamExample(ByVal theStream As Stream)
RasterCodecs.Startup()
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()
RasterCodecs.Shutdown()
End Sub |
C# | Copy Code |
---|
void ReadMarkersFromStreamExample(Stream theStream) { RasterCodecs.Startup(); 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(); RasterCodecs.Shutdown(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also