Graphic set

From Bennu Wiki
Revision as of 03:54, 16 March 2012 by 82.74.128.190 (talk) (Created page with 'Category:functions Category:maps Category:mod_map ==Definition== '''INT''' Graphic_set ( <'''INT''' fileID> , <'''INT''' graphID> , <'''INT''' info_type> , <'''INT''…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Definition

INT Graphic_set ( <INT fileID> , <INT graphID> , <INT info_type> , <INT value> )

Changes the x or y coordinate of the center pixel (controlpoint 0). This function is also known as Map_info_set().

Parameters

INT fileID - The file that holds the graph.
INT graphID - The graph to get information from.
INT info_type - What type of information you want to change, see note.
INT value - The new x or y coordinate of the center pixel.

Returns

INT : Returns the information you want.
If the specified graph was invalid it returns 0.
If the specified infotype was not recognized it returns 1.


Notes

As infotype, only two options are valid:

G_X_CENTER - Change the x coordinate of the center pixel.
G_Y_CENTER - Change the y coordinate of the center pixel.


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()