Retrieve the value of an option in a file format.
bool CExtAPI::format_GetOptionValue(ZFORMAT hFormat, const char* lpOptionName, long VarID, void* pValue);
Name | Type | Comment |
---|---|---|
hFormat | ZFORMAT | A ZFORMAT handle, an option of which is to be retrieved. |
lpOptionName | const char* | A pointer to a C-style string, containing the option name. |
VarID | long | The expected integer VarID of the option, such as VarID_int. |
pValue | void* | A pointer (of unknown type) to the entity that shall receive the option data. It is the caller's responsibility to ensure that the appropriate memory has been allocated (see example for usage). |
False if:
True otherwise.
None.
// default values int TileSize = 64; bool Overlap = true; theAPI.format_GetOptionValue(hFormat, "TileSize", VarID_int, &TileSize); theAPI.format_GetOptionValue(hFormat, "Overlap", VarID_bool, &Overlap);