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 |
|
| There are no user contributed notes for this page. |
| Last updated: Tue, 24 May 2005 - 16:58:25 |
|
|