Click or drag to resize

TiffDecoderGetTiffTag Method

Gets a TIFF Tag from a file or stream.
Examples

This example demonstrates how to obtain a simple TIFF Tag from a TIFF image.

[New Example] (C#)
TiffTag tag = TiffDecoder.GetTiffTag((int)TiffTagID.Software, "myimage.tif", 0);
if (tag != null)
  MessageBox.Show(tag.ToString(), this);
[New Example] (Visual Basic)
Dim tag As TiffTag = TiffDecoder.GetTiffTag(TiffTagID.Software, "myimage.tif", 0) 
If Not tag Is Nothing Then
  MessageBox.Show(tag.ToString(), Me)
End If
Overload List
  NameDescription
Public methodStatic memberGetTiffTag(Int32, Stream, Int32)
Gets a TIFF Tag from a TIFF image stream.
Public methodStatic memberCode exampleGetTiffTag(Int32, String, Int32)
Gets a TIFF Tag from a TIFF file.
Top
Examples

This example demonstrates how to obtain a simple TIFF Tag from a TIFF image.

[New Example] (C#)
TiffTag tag = TiffDecoder.GetTiffTag((int)TiffTagID.Software, "myimage.tif", 0);
if (tag != null)
  MessageBox.Show(tag.ToString(), this);
[New Example] (Visual Basic)
Dim tag As TiffTag = TiffDecoder.GetTiffTag(TiffTagID.Software, "myimage.tif", 0) 
If Not tag Is Nothing Then
  MessageBox.Show(tag.ToString(), Me)
End If
See Also