LEADTOOLS Image File Support (Leadtools.Codecs assembly)

EnumTags(Stream,Int32) Method

Show in webframe







A System.IO.Stream containing the input file image data.
1-based index of the page from which to enumerate the tags.
Enumerates all the tags in a stream.
Syntax
public void EnumTags( 
   Stream stream,
   int pageNumber
)
'Declaration
 
Public Overloads Sub EnumTags( _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer _
) 
'Usage
 
Dim instance As RasterCodecs
Dim stream As Stream
Dim pageNumber As Integer
 
instance.EnumTags(stream, pageNumber)
public void EnumTags( 
   Stream stream,
   int pageNumber
)
-(BOOL)enumTags:(LTLeadStream*)stream  pageNumber:(unsigned int)pageNumber error:(NSError**)outError;
public void enumTags(ILeadStream stream, int pageNumber)
 function Leadtools.Codecs.RasterCodecs.EnumTags(Stream,Int32)( 
   stream ,
   pageNumber 
)
public:
void EnumTags( 
   Stream^ stream,
   int pageNumber
) 

Parameters

stream
A System.IO.Stream containing the input file image data.
pageNumber
1-based index of the page from which to enumerate the tags.
Remarks

This method will fire the TagFound event for each tag found in the stream.

Currently, only TIFF and Exif files contain tags.

For multipage TIFF files, you can enumerate the tags from a particular page. Specify the page number whose tags to enumerate.

This method enumerates the standard TIFF tags and the user tags. Standard TIFF tags are less than 32767. User TIFF tags are usually between 32768 and 65535.

To enumerate the tags stored in a disk file, use EnumTags(String,Int32).

To read a tag value, use ReadTag(String,Int32,Int32) and to read all the tags in a file, use ReadTags(String,Int32).

For general information about TIFF tags, refer to Implementing TIFF Comments and Tags.

Do not attempt to use DeleteTag(String,Int32,Int32) to delete tags from inside the TagFound event. If you want to delete tags that you enumerate, use this event to add the tags to a list. Upon returning from EnumTags(String,Int32), you can delete all the tags from the list.

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

Example
For an example, refer to EnumTags(String,Int32).
Requirements

Target Platforms

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.