Available in the LEADTOOLS Imaging toolkit. |
Maintaining File Comments
Some file formats can contain comments, and some cannot, and each file format has its own set of comment types, as described in Types of File Comments.
An array of comments can be maintained in memory. These comments can be written to a file, along with the control's loaded bitmap, when the file is saved. The comments can also be written to an existing file, without overwriting the stored image. You can maintain an array of comments in memory, and when you save a file, the comments from the array are written to the file. There is only one array of comments for your application, regardless of how may LEAD controls your application contains. You control the contents of the array; loading or saving a file does not initialize the array. You can use the following property to get and set the value of any comment in the array:
To read the existing comments from a file, use the following method:
To write comments to an existing file, without overwriting the stored image with the control's loaded bitmap, use the following method: