Description
INT FPG_ADD (INT FPG FILE, INT GRAPHIC, INT ORIGINAL FPG, INT ORIGINAL GRAPH)
Adds a new graph to an FPG library loaded in memory
PARAMETERS:
INT FPG file: Code of the FPG file to modify
INT graphic: Code for the new graph, 0 to 999
INT original FPG: The original FPG
INT original graph: Code of the original graph
DESCRIPTION:
This function allows you to modify a FPG library already open in memory, adding a new graph from another graph into memory.
The destination library must be of the code of the FPG obtained by means of the functions Load_Fpg or Fpg_New.
The original FPG must be the code of another FPG in memory, although it can also identify its own FPG as the destiny FPG(to make copies of graphs within the same FPG) or FPG 0, to be able to specify graphs obtained with function New_Map.
Fpg_Add creates a copy of the original graph, that continues being to be valid and accessible. If there were already a graph with the same code in the destiny FPG, this one will be removed from memory and substituted by the new one.
The greatest use of this function is to create new FPG's of graphs, to keep them call Save_Fpg. There are other functions which will allow you to modify the parameters in memory of the graphs added to the FPG, like Map_Set_Name.
NOTES:
All the graphs added to the same FPG must have the same color depth (1, 8 or 16 bits).
To add a graph to an FPG when it already has the same graph of another type is considered to be a conditional error.
|