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

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

INT GRAPHIC_INFO ( INT LIBRARY, INT GRAPH, INT TYPE )
This command allows you to inspect attributes of a graphic file.

PARAMETERS:

INT library: Number of the FPG library
INT graph: Number of the graphic file inside the library
INT type: Type of attribute you want to check. It can be:

G_WIDE: Width in pixels of the graphic file
G_HEIGHT: Height in pixels of the graphic file
G_CENTER_X: Horizontal coordinate of the centre of the graphic file
G_CENTER_Y: Vertical coordinate of the centre of the graphic file
G_PITCH: Difference in bytes, in memory, between two rows of the graph
G_DEPTH: Colour depth of graph (in bits per pixel)
G_FRAMES: Total number of graphs.
G_ANIMATION_STEP: Current frame of the animation
G_ANIMATION_STEPS: Number of frames of the animation
G_ANIMATION_SPEED: Current speed of the animation

DESCRIPTION:
This function allows access during runtime to determine the attributes of a graph, specially those of its animation, although its results are useful, access to the content of the graph can be obtained using Map_Buffer too.

The animations of the MAP graphics are automatic, and independent of the frames per second established by the function Set_Fps.

User Contributed Notes
Graphic_Info
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Tue, 24 May 2005 - 16:58:25

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