WriteMetaData method (Marker Control)

C++ Builder example

Delphi example

 

Builder Syntax

int WriteMetaData (AnsiString strFileName, unsigned uFlags);

Delphi Syntax

Function WriteMetaData (strFileName:String; uFlags: Cardinal): Integer;

Overview

Refer to Implementing Markers.

Remarks

Writes metadata of the specified type to the specified file.

This method can be used to update an existing file (strFileName) with comments, tags and/or markers.

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.

The comments are set by setting the Comment property and then calling either the Save method, the SaveMemory method or the WriteComment method.

The tags are set by calling the SetTag method, prior to calling this method.

The markers are set by calling the SetMarkers method, prior to calling this method.

See Also

Elements:

CreateMarkers method, WriteMetadata method, TransformFile method, EnumMarkers method, InsertMarker method, GetMarker method, Count property, CopyMarkers method, DeleteMarker method, DeleteMarkerAt method, Element property, ElementCount property, OnEnumerateMarkers event, SetMarkers method, Save method, SaveBuffer method, SaveMemory method, SaveOffset method, TransformFile method, MarkerType property, GetMarkers method, SetTag method

Topics

Raster Images: Markers