Available in the LEADTOOLS Imaging toolkit. |
WriteComment method (Main Control)
Visual Basic
Example
Visual
C++ 4.0 Example
Syntax short WriteComment (BSTR pszFile, long lPage);
Overview: Refer to Maintaining File Comments
Remarks
Writes comments to an existing file.
This method writes all the comments set in the Comment property to the specified file, just like the Save method. However, the WriteComment method only writes the comments to the file. It does not overwrite the image stored in the file with the control’s bitmap. Any comments already in the file will be overwritten.
When you add or remove comments or tags, the comments and tags array at the end of the TIFF/Exif image file is re-written. When you modify existing comments or tags, the new value is added to the file and the IFD is modified as necessary. In all of these cases, there is no image recompression.
For more information on setting comments, refer to the Comment property. For more information on saving files, refer to the Save method. For information on reading comments, refer to the ReadComment method.
See Also
Functions: Comment property, Save method, ReadComment method