public static bool CommentsSupported(
RasterImageFormat format
)
Public Shared Function CommentsSupported( _
ByVal format As RasterImageFormat _
) As Boolean
+ (BOOL)commentsSupported:(LTRasterImageFormat)format
public static boolean commentsSupported(RasterImageFormat format)
public:
static bool CommentsSupported(
RasterImageFormat format
)
format
The RasterImageFormat to check
true if the format supports comment fields; otherwise it is false.
This is a helper method that can be used to detect if a certain raster file format supports comment fields. For example, ReadComment and ReadComments can be used to read the comments stored in a file. If the file format supports comments, such as JPEG or EXIF, then these methods will successfully return the comments stored.
However, if the format does not support comments, such as BMP, an exception will be thrown by the RasterCodecs objects. You can use CommentsSupported to determine whether the file supports comments and only call the read methods if the return value is true.
Note that the RasterCodecs option uses this method internally to determine whether the file supports comments when the CodecsLoadOptions.Comments is set to true and only read the file comments if the file format supports them.
For an example, refer to ReadTags.
ReadComment(String,Int32,RasterCommentMetadataType) Method
ReadComments(String,Int32) Method
Implementing TIFF Comments and Tags
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document