ReadMarkers(string) Method (original) (raw)

Summary

Reads all the metadata markers (COM and APPn) from a file.

Syntax

C#

Objective-C

C++/CLI

Python

- (nullable NSArray<LTRasterMarkerMetadata *> *)readMarkersFromFile:(NSString *)file error:(NSError **)error 

Parameters

fileName
A String containing the input file name.

Return Value

A collection of RasterMarkerMetadata objects containing the metadata marker data.

Example

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; void ReadMarkersFromFileExample(string exifFileName) { RasterCodecs codecs = new RasterCodecs(); IList<RasterMarkerMetadata> markers = codecs.ReadMarkers(exifFileName); Debug.WriteLine("{0} markers found with the following ID's:", markers.Count); foreach (RasterMarkerMetadata marker in markers) Debug.WriteLine(marker.Id); codecs.Dispose(); }

Leadtools.Codecs Assembly

CompactFile(Stream,Stream,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(Stream,Stream,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

CompactFile(string,string,int,int,bool,int,int,bool,int,CodecsSavePageMode,bool,bool) Method

CompactFile(string,string,int,int,bool,long,int,bool,long,CodecsSavePageMode,bool,bool,bool) Method

StartCompress(int,int,int,RasterByteOrder,RasterViewPerspective,int,byte[],int,int,CodecsCompression,CodecsCompressDataCallback) Method