Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
Tags Property
See Also 
Leadtools Namespace > RasterImage Class : Tags Property




The collection of tag data used when reading and writing certain file formats (including TIFF).

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Tags As RasterCollection(Of RasterTagMetadata)
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As RasterCollection(Of RasterTagMetadata)
 
value = instance.Tags
C# 
public RasterCollection<RasterTagMetadata> Tags {get;}
Managed Extensions for C++ 
public: __property RasterCollection<RasterTagMetadata>* get_Tags();
C++/CLI 
public:
property RasterCollection<RasterTagMetadata>^ Tags {
   RasterCollection<RasterTagMetadata>^ get();
}

Return Value

A collection of RasterTagMetadata used when reading and writing certain file formats (including TIFF).

Remarks

Several formats allow you to store non-image data such as comments, tags, and markers.

You can manipulate the tags of an image by adding/removing RasterTagMetadata objects to this collection.

By setting the CodecsSaveOptions.Tags property to true before calling RasterCodecs.Save, you can save the tags in this collection when the image is saved into a file.

By setting the CodecsLoadOptions.Markers property to true before calling RasterCodecs.Load, you can load all the markers (if any) into this collection when an image is loaded from a file.

You can use the RasterCodecs.WriteTags method to save the tags directly to an existing file and the RasterCodecs.EnumTags to load the tags stored in an existing file.

For more information, refer to Non Image Data.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also