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

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

INT GET_POINT (INT LIBRARY, INT GRAPH, INT NUMBER, INT X, INT Y)
This command allows you to obtain a control point of a particular graphic file.

PARAMETERS:

INT library: Number of the FPG library
INT graph: Number of the graph inside the library which you want to use
INT number: Number of the control point (where control point 0 is the centre of the graphic)
INT x: Offset of a variable of entire type (INT) which will hold the horizontal coordinate(X) of the control point
INT y: Offset of a variable of entire type (INT) which will hold the vertical coordinate(Y) of the control point

DESCRIPTION:

Any graph can contain an undetermined number of control points where control point 0 is the centre of the graphic, and the rest are available to the user. This function allows you to know the location of any control point belonging to any graph.

If the number of the control points specified is out of range, the function returns -1 and the variables x and y will not be modified. But if the control point is in range, but not defined, x and y will have the value -1.

In the rest of the cases, x and y will have the coordinates of the control point, then (0, 0) will represent the pixel located in the top left corner of the graph.

User Contributed Notes
Get_Point
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Tue, 24 May 2005 - 17:30:18

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