ImageGear Professional v18.2 > API Reference Guide > MD Component API Reference > MD Component Objects > IGMedCtl Control > IGMedCtl Methods > UpdateFileMetadata Method |
Creates a new file with exact copy of source file's pixel data and with new metadata (File Meta Information header and DataSet) taken from IGMedPage Object. Pixel data is not decoded but copied directly from source to destination file.
This function can be used for updating metadata in an image file without modifying the pixel data. To achieve this, delete the source file after calling this function, and rename result file to the source file name.
The function does not change the tags that affect decoding of pixel data.
The function takes into account the following DICOM filter control parameters:
Sub UpdateFileMetadata (MedPage as IGMedPage, SrcFileName As String, DstFileName As String)
Name | Description |
---|---|
MedPage | IGMedPage Object, containing metadata to be saved to result file |
SrcFileName | Source file name |
DstFileName | Result file name |
Med