L_TagsSupported

#include "l_bitmap.h"

L_LTFIL_API L_BOOL L_TagsSupported(nFormat)

L_INT nFormat;

file format

Checks whether the given file format supports tags.

Parameter

Description

nFormat

Input file format. For valid values, refer to Files To Be Included With Your Application.

Returns

TRUE

The format supports tags.

FALSE

The format does not support tags.

Comments

This is a helper function that can be used to detect if a certain raster file format supports tags. For example, L_ReadFileTag, L_ReadFileTags and L_EnumFileTags functions 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 error will be returned by these functions. You can use the L_TagsSupported function to check if the file supports tags and only call the read tags methods if the return value is TRUE.

For general information about TIFF tags, refer to Implementing TIFF Comments and Tags.

Required DLLs and Libraries

LTFIL

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64, Linux.

Help Version 20.0.2018.1.19
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C API Help