Map clone

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT map_clone ( <INT fileID> , <INT graphID> )

Clones a certain graphic and puts it in the system file.

Parameters

INT fileID - The fileID of the file holding the graphic.
INT graphID - The graphID of the graphic to be cloned.

Returns

INT : GraphID

0 - Invalid graphic specified;
>0 - The graphID of the clone graphic.

Errors

Unsupported color depth - The specified graph has a not supported color depth. (Console)
Insufficient memory - There is insufficient memory available. This error doesn't occur often. (Console)


Maps Functions
Get_pixel()Graphic_info()Graphic_set()Map_block_copy()Map_buffer()Map_clear()Map_clone()Map_del()Map_exists()Map_get_pixel()Map_info()Map_info_get()Map_info_set()Map_load()Map_name()Map_new()Map_put()Map_put_pixel()Map_save()Map_set_name()Map_unload()Map_xput()Map_xputnp()Pcx_load()Png_load()Png_save()Point_get()Point_set()Put_pixel()