|
Description
DBWritePCT() is used to write a 768-entry pseudocolor table from a byte array into a database segment.
Call Signature
int DBWritePCT ( int/string filespec, int segment_num, byte ptr buffer )
Return Value
int
Returns the segment number written to. This is primarily useful when a new segment has been created.
Arguments
int/string filespec:
This can either be the handle returned by DBOpen(), or the name of an open file.
int segment_num:
The segment number containing the PCT to be written over. If this is zero and the database is a PCIDSK file, a new PCT segment will be created.
byte ptr buffer:
An array of at least 768 bytes from which the pseudocolor table is written.
See also
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.