public static boolean tagsSupported(RasterImageFormat format)
The RasterImageFormat to check
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, ReadTags and EnumTags 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 TagsSupported to determine whether 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 determine whether the file supports tags when the CodecsLoadOptions.Tags is set to true and only read the file tags if the file format supports them.
For an example, refer to ReadTags.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries