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 |
|
| There are no user contributed notes for this page. |
| Last updated: Mon, 30 May 2005 - 10:32:59 |
|
|