LFile::FreeComments

Summary

Frees the data allocated by calling the LFile::ReadComments function.

Syntax

#include "ltwrappr.h"

L_INT LFile::FreeComments(uCommentCount, pComments, uDataSize, pData)

Parameters

L_UINT uCommentCount

The number of comments found in the file.

pLEADFILECOMMENT pComments

Pointer to an array of LEADFILECOMMENT structures. Each element of the array contains data for one comment field found in the file. The number of elements in pComments is uCommentCount.

L_SIZE_T uDataSize

The size in bytes of the overall comment fields data.

L_UCHAR *pData

A pointer to the overall comment fields data. The size of this pointer in bytes is uDataSize. Each LEADFILECOMMENT item found contains an offset to where the data for this item is stored in pData.

Returns

Value Meaning
SUCCESS The function was successful
< 0 An error occurred. Refer to Return Codes.

Comments

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

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

For an example, refer to LFile::ReadTags.

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.