Changes the image header information of a specific image segment.
#include "ltwrappr.h"
L_INT LNITFFile::SetImageHeader(uIndex, pImageHeader)
A zero-based index of the image segment in the NITF file to be changed with the new image header information.
Pointer to an IMAGEHEADER structure that contains the new image header information to set in the image segment in the NITF file at the specified index uIndex.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To retrieve the number of the image segments in the NITF file, call the LNITFFile::GetImageHeaderCount function.
To retrieve the image header for a specific image segment, call the LNITFFile::GetImageHeader function.
For an example, refer to LNITFFile::GetImageHeader.