←Select platform

ReadTagAsync Method

Summary

Gets the specified tagged data from a TIFF stream.

Syntax

C#
VB
WinRT C#
C++
public IAsyncOperation<RasterTagMetadata> ReadTagAsync(  
   ILeadStream stream, 
   int pageNumber, 
   int id 
) 
Public Function ReadTagAsync( _ 
   ByVal stream As ILeadStream, _ 
   ByVal pageNumber As Integer, _ 
   ByVal id As Integer _ 
) As IAsyncOperation(Of RasterTagMetadata) 
public IAsyncOperation<RasterTagMetadata> ReadTagAsync(  
   ILeadStream stream, 
   int pageNumber, 
   int id 
) 
 function Leadtools.Codecs.RasterCodecs.ReadTagAsync(  
   stream , 
   pageNumber , 
   id  
) 
public: 
IAsyncOperation<RasterTagMetadata^>^ ReadTagAsync(  
   ILeadStream^ stream, 
   int pageNumber, 
   int id 
)  

Parameters

stream
A ILeadStream containing the input file image data.

pageNumber
1-based index of the page from which to read the tag.

id
Tag to identify the data in the TIFF file. Use the same tag that you specified in the WriteTag. Examples of registered tags are:

Value Meaning
0x8298 Copyright comment
0x8769 General Exif comments
0x8825 Exif GPS comments
0x80A4 Annotation TIFF tag

Return Value

When this method completes, it returns the tag data.

Remarks

This method is provided to support TIFF tags that you define. If no such tag exists in the image, this method will return a null reference.

To read all the tags stored in a file, use ReadTags

You can use TagsSupported to determine whether a certain file format supports tags.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly