Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.8.30
|
Leadtools.Codecs Namespace > RasterCodecs Class : EnumTagsAsync Method |
public IAsyncAction EnumTagsAsync( ILeadStream stream, int pageNumber )
'Declaration
Public Function EnumTagsAsync( _ ByVal stream As ILeadStream, _ ByVal pageNumber As Integer _ ) As IAsyncAction
'Usage
Dim instance As RasterCodecs Dim stream As ILeadStream Dim pageNumber As Integer Dim value As IAsyncAction value = instance.EnumTagsAsync(stream, pageNumber)
public IAsyncAction EnumTagsAsync( ILeadStream stream, int pageNumber )
function Leadtools.Codecs.RasterCodecs.EnumTagsAsync( stream , pageNumber )
public: IAsyncAction^ EnumTagsAsync( ILeadStream^ stream, int pageNumber )
This method will fire the TagFound event for each tag found in the stream.
Currently, only TIFF and Exif files contain tags.
For multi-page 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.
To read a tag value, use ReadTag and to read all the tags in a file, use ReadTags.
For general information about TIFF tags, refer to Implementing TIFF Comments and Tags.
Do not attempt to use DeleteTag 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, you can delete all the tags from the list.
You can use TagsSupported to determine whether a certain file format supports tags.