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

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

INT SET_CENTER ( INT LIBRARY, INT GRAPH, INT X, INT Y )
It allows you to change the centre of a graph

PARAMETERS:
INT library: Number of FPG library
INT graph: Number of graph inside of library
INT x: New value to horizontal coordinate of the centre
INT y: New value to vertical coordinate of the centre

DESCRIPTION:
This function allows you to change the centre of a graph.
The centre is a point within the pixels of the graph that is used to: Specify the meaning of the coordinate (x, y) when the graph is shown in screen. If a graph is shown in the coordinate (10, 15) it means that its centre is drawn at that point. Specifically the point from as if the graph is rotated. The centre is not displaced, and the rest of graph is turned.

View the variable ANGLE. Specify the point from where operations of horizontal and vertical mirrors are made.

View the variable FLAGS. When a graph is used like the pointer of the mouse, using the variable MOUSE.GRAPH, indicates the "hot" point of the same one, which is used to check where the mouse is marking.

When a graph has not been assigned a centre point (for example, because it has been recovered from a standard file like a PNG), it's geometric centre is used.

This function allows you to change that centre, specifying a new coordinates for the same one. This coordinates are always in pixels inside of the graph, where the pixel (0, 0) represents the top left corner of the graph and the coordinates increase towards down and right.


User Contributed Notes
Set_Center
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Mon, 30 May 2005 - 10:32:59

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