LNITFFile::SetGraphicHeader

#include "ltwrappr.h"

L_INT LNITFFile::SetGraphicHeader(uIndex, pGraphicsHeader)

L_UINT uIndex;

/* index of the graphics data */

pGRAPHICHEADER pGraphicsHeader;

/* pointer to a GRAPHICHEADER structure */

Changes the graphic header information of a specific graphic segment.

Parameter

Description

uIndex

A zero-based index of the graphic segment in the NITF file to be changed with the new graphic header information.

pGraphicsHeader

Pointer to a GRAPHICHEADER structure that contains the new graphic header information to set in the graphic segment in the NITF file at the specified index uIndex.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

To retrieve the number of the graphic segments in the NITF file, call the LNITFFile::GetGraphicHeaderCount function.

To retrieve the graphic header for a specific graphic segment, call the LNITFFile::GetGraphicHeader function.

Required DLLs and Libraries

LTNTF

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LNITFFile::Create, LNITFFile::Destroy, LNITFFile::GetStatus, LNITFFile::SaveFile, LNITFFile::AppendImageSegment, LNITFFile::AppendGraphicSegment, LNITFFile::AppendTextSegment, LNITFFile::SetVector, LNITFFile::GetVector, LNITFFile::GetNITFHeader, LNITFFile::SetNITFHeader, LNITFFile::GetGraphicHeaderCount, LNITFFile::GetGraphicHeader, LNITFFile::GetImageHeaderCount, LNITFFile::GetImageHeader, LNITFFile::SetImageHeader, LNITFFile::GetTextHeaderCount, LNITFFile::GetTextHeader, LNITFFile::SetTextHeader.

Topics:

NITF Functions: Getting and Setting Header Information.

 

Programming with LEADTOOLS NITF Functions.

Example

For an example, refer to LNITFFile::GetGraphicHeader