Difference between revisions of "Misc"
From XnView Wiki
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== gflBitmapSetComment == | == gflBitmapSetComment == | ||
The gflBitmapSetComment function | The gflBitmapSetComment function changes the comment associated with a bitmap. Only some formats can save the comment. | ||
void <b> | void <b>gflBitmapSetComment</b>( | ||
GFL_BITMAP* bitmap, | GFL_BITMAP* bitmap, | ||
const char* comment | const char* comment | ||
Line 14: | Line 14: | ||
:comment | :comment | ||
::Pointer to a null-terminated string that contains the comment. | ::Pointer to a null-terminated string that contains the comment. | ||
== gflBitmapRemoveMetadata == | == gflBitmapRemoveMetadata == | ||
The gflBitmapRemoveMetadata function | The gflBitmapRemoveMetadata function removes all metadata of a picture. | ||
void <b>gflBitmapRemoveMetadata</b>( | void <b>gflBitmapRemoveMetadata</b>( | ||
Line 31: | Line 30: | ||
'''See also''' | '''See also''' | ||
:[[EXIF#gflBitmapHasEXIF|gflBitmapHasEXIF]], [[EXIF#gflBitmapRemoveEXIFThumbnail|gflBitmapRemoveEXIFThumbnail]], [[#gflBitmapHasIPTC|gflBitmapHasIPTC]] | :[[EXIF#gflBitmapHasEXIF|gflBitmapHasEXIF]], [[EXIF#gflBitmapRemoveEXIFThumbnail|gflBitmapRemoveEXIFThumbnail]], [[#gflBitmapHasIPTC|gflBitmapHasIPTC]] | ||
== gflGetExtraInfosCount == | |||
The gflGetExtraInfosCount function returns the number of extra infos readed. GFL_LOAD_READ_ALL_COMMENT should be used when loading. | |||
GFL_INT32 <b>gflGetExtraInfosCount</b>( | |||
const GFL_FILE_INFORMATION* info | |||
); | |||
'''Parameters''' | |||
:info | |||
::Pointer to a valid [[Structures#GFL_FILE_INFORMATION|GFL_FILE_INFORMATION]] struct | |||
'''Return value''' | |||
:The number of extra information found | |||
== gflGetExtraInfos == | |||
The gflGetExtraInfos function gets one extra info. GFL_LOAD_READ_ALL_COMMENT should be used when loading. | |||
void <b>gflGetExtraInfos</b>( | |||
const GFL_FILE_INFORMATION* info, | |||
int idx, | |||
char** name, | |||
char** value | |||
); | |||
'''Parameters''' | |||
:info | |||
::Pointer to a valid [[Structures#GFL_FILE_INFORMATION|GFL_FILE_INFORMATION]] struct | |||
:idx | |||
::Index of the wanted info | |||
:name | |||
::Address of a pointer for a null-terminated string. | |||
:value | |||
::Address of a pointer for a null-terminated string. | |||
[[Category: GFLSDK Reference Manual]] |
Latest revision as of 18:19, 27 April 2010
gflBitmapSetComment
The gflBitmapSetComment function changes the comment associated with a bitmap. Only some formats can save the comment.
void gflBitmapSetComment( GFL_BITMAP* bitmap, const char* comment );
Parameters
- bitmap
- Pointer to a GFL_BITMAP structure.
- comment
- Pointer to a null-terminated string that contains the comment.
gflBitmapRemoveMetadata
The gflBitmapRemoveMetadata function removes all metadata of a picture.
void gflBitmapRemoveMetadata( GFL_BITMAP* bitmap );
Parameters
- bitmap
- Pointer to a GFL_BITMAP structure.
See also
gflGetExtraInfosCount
The gflGetExtraInfosCount function returns the number of extra infos readed. GFL_LOAD_READ_ALL_COMMENT should be used when loading.
GFL_INT32 gflGetExtraInfosCount( const GFL_FILE_INFORMATION* info );
Parameters
- info
- Pointer to a valid GFL_FILE_INFORMATION struct
Return value
- The number of extra information found
gflGetExtraInfos
The gflGetExtraInfos function gets one extra info. GFL_LOAD_READ_ALL_COMMENT should be used when loading.
void gflGetExtraInfos( const GFL_FILE_INFORMATION* info, int idx, char** name, char** value );
Parameters
- info
- Pointer to a valid GFL_FILE_INFORMATION struct
- idx
- Index of the wanted info
- name
- Address of a pointer for a null-terminated string.
- value
- Address of a pointer for a null-terminated string.