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

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

INT NEW_MAP ( INT WIDTH, INT HEIGHT, INT DEPTH )
It creates a new graph in memory

PARAMETERS:
• INT width: Width in pixels of the new graph
• INT height: Height in pixels of the new graph
• INT depth: Depth of colour (in bits per pixel: 1, 8 or 16)

DESCRIPTION:
This function creates a new graph with the size and number of bits per pixel of colour determined. The graph is created inside of the library 0, and it is assigned any available number, which has not been used for another graph.

The depth of colour has the meaning: A graph of 1 bit per pixel has no information of colour. The pixels of 0 represent transparent pixels, and the bits of 1 will be drawn using the colour chosen by the function Drawing_Color.

A graph of 8 bits per pixel has 256 available values for each pixel. Each value represents an index in a general table of colours, the colour palette, which applies to all 8 bit graphs.

A graph of 16 bits holds information of the components: red, green and blue of each pixel, so that is independent of any colour palette. The exact combination of the components inside of the 16 bits depends on the video card, so it is only valid to create and use graphs of 16 bits if before you have set a graph mode of 16 bits.

The new graph is created with all pixels to 0 (they are all transparent).

User Contributed Notes
New_Map
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Wed, 25 May 2005 - 8:13:19

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