Fenix Manual
Fenix Manual
Command Reference
Map Commands

Get_Point
Graphic_Info
Graphic_Set
Load_Map
Load_Pcx
Load_Png
Map_Block_Copy
Map_Clear
Map_Clone
Map_Exists
Map_Get_Pixel
Map_Name
Map_Put
Map_Put_Pixel
Map_Set_Name
New_Map
Save_Map
Save_Png
Set_Center
Set_Point
Unload_Map

Load_Map
Last Modified: May 23, 2005 20:05PM
(Any)
Description

INT LOAD_MAP ( STRING ARCHIVE )
Load a MAP from the disk.

PARAMETERS:
STRING archive: Name of archive

DESCRIPTION:
This function returns a MAP graph from disk. The MAP is in a format belonging to Fenix that allows a map to contain graphs of 1, 8 or 16 bits per pixel in compressed format, with transparent pixels, and optionally with an animation sequence attached. The graphs of 8 bits have a colour palette stored inside the MAP archive.

LOAD_MAP returns a whole number that identifies the MAP graph. It is then possible to use this value with any function that allows a graph like parameter, indicating the code 0 of library, or assigning the number to the variable Graph.

NOTES:
It is only possible to visualize graphs of 16 bits if the current graph mode is set to 16 bits. But it is possible to visualize graphs of 8 bits in 16 bit modes.

There is an active colour palette all the time. Use only graphs of 8 bits that use the same colour palette. Fenix will automatically use the colour palette of the first graph returned from the disk and will ignore any other palettes belonging to any graphs loaded after the first one. Even in 16 bit modes a colour palette exists (but in this mode the palette only affects the graphs of 16 bits).


User Contributed Notes
Load_Map
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Tue, 24 May 2005 - 17:24:19

Manual © 2005 By Gary Moncrieff(Dazzy), Notes belong to their respective posters