LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

MarkersSupported Method






The Leadtools.RasterImageFormat to check
Checks whether the given file format supports markers .NET support WinRT support Silverlight support
Syntax
public static bool MarkersSupported( 
   RasterImageFormat format
)
'Declaration
 
Public Shared Function MarkersSupported( _
   ByVal format As RasterImageFormat _
) As Boolean
'Usage
 
Dim format As RasterImageFormat
Dim value As Boolean
 
value = RasterCodecs.MarkersSupported(format)
public static bool MarkersSupported( 
   RasterImageFormat format
)
 function Leadtools.Codecs.RasterCodecs.MarkersSupported( 
   format 
)
public:
static bool MarkersSupported( 
   RasterImageFormat format
) 

Parameters

format
The Leadtools.RasterImageFormat to check

Return Value

true if the format supports markers; otherwise it is false.
Remarks

This is a helper method that can be used to detect if a certain raster file format supports markers. For example, ReadMarkers(String) can be used to read the markers stored in a file. If the file format supports markers, such as EXIF, then these methods will successfully return the markers stored.

However, if the format does not support markers, such as BMP, an exception will be thrown by the RasterCodecs objects. You can use MarkersSupported to determine whether the file supports markers 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 markers when the CodecsLoadOptions.Markers is set to true and only read the file markers if the file format supports them.

Example
For an example, refer to ReadTags(String,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCodecs Class
RasterCodecs Members
ReadMarkers(String) Method
TagsSupported Method
GeoKeysSupported Method
Tags Property
RasterImage.Tags
Working with Markers
Implementing TIFF Comments and Tags
TIFF File Comments
Implementing GeoKeys (GeoTIFF tags)
Leadtools.RasterCommentMetadataType

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.