- format
- The Leadtools.RasterImageFormat to check
Visual Basic (Declaration) | |
---|---|
Public Shared Function TagsSupported( _ ByVal format As RasterImageFormat _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim format As RasterImageFormat Dim value As Boolean value = RasterCodecs.TagsSupported(format) |
C# | |
---|---|
public static bool TagsSupported( RasterImageFormat format ) |
C++/CLI | |
---|---|
public: static bool TagsSupported( RasterImageFormat format ) |
Parameters
- format
- The Leadtools.RasterImageFormat to check
Return Value
true if the format supports tags; otherwise it is false.This is a helper method that can be used to detect if a certain raster file format supports tags. For example, ReadTag(String,Int32,Int32), RasterCodecs.ReadTags and EnumTags(String,Int32) can be used to read the tags stored in a file. If the file format supports tags, such as JPEG or TIFF, then these methods will successfully return the tags stored.
However, if the format does not support tags, such as BMP, an exception will be thrown by the RasterCodecs objects. You can use RasterCodecs.TagsSupported to check if the file supports tags and only call the read tags methods if the return value is true.
Note that the RasterCodecs option uses this method internally to check if the file supports tags when the CodecsLoadOptions.Tags is set to true and only read the file tags if the file format supports them.
Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
Reference
RasterCodecs ClassRasterCodecs Members
ReadTag(String,Int32,Int32) Method
ReadTags(String,Int32) Method
ReadTagsWithOffsets(String,Int32,Int64[]) Method
EnumTags(String,Int32) Method
CommentsSupported Method
GeoKeysSupported Method
Tags Property
RasterImage.Tags
Working with Markers
Implementing TIFF Comments and Tags
TIFF File Comments
Implementing GeoKeys (GeoTIFF tags)
Leadtools.RasterCommentMetadataType