Visual Basic (Declaration) | |
---|---|
Public Overloads Function ReadTag( _ ByVal fileName As String, _ ByVal pageNumber As Integer, _ ByVal id As Integer _ ) As RasterTagMetadata |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterTagMetadata ReadTag( string fileName, int pageNumber, int id ) |
C++/CLI | |
---|---|
public: RasterTagMetadata ReadTag( String^ fileName, int pageNumber, int id ) |
Parameters
- fileName
- A String containing the input file name.
- 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
The tag data.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 (Nothing in Visual Basic).
To read all the tags stored in a file, use RasterCodecs.ReadTags(String,Int32)
You can use RasterCodecs.TagsSupported to check if a certain file format supports tags.
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family