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

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

MAP_BLOCK_COPY ( INT LIBRARY, INT GRAPH, INT DESTINY-X, INT DESTINY-Y, INT SOURCE-GRAPH, INT SOURCE-X, INT SOURCE-Y, INT WIDTH, INT HEIGHT, INT FLAGS )
It copies a section of a graph inside of other

PARAMETERS:
INT library: Number of the FPG library
INT graph: Number of the destiny graph inside the library
INT destiny-x: Horizontal destiny coordinates
INT destiny-y: Vertical destiny coordinates
INT source-graph: Number of source graph inside the library
INT source-x: Horizontal coordinate inside the source graph
INT source-y: Vertical coordinate inside the source graph
INT width: Width in pixels of block to copy
INT height: Height in pixels of block to copy
INT flags: Value of flags

DESCRIPTION:
This function copies a section of a graph determined by the source coordinates (for the top left corner of the zone), a width and a height, to a destiny graph possibly in other coordinates. By the value of flags indicated it is possible to determine if the transparent pixels in the source graph are ignored (flags 0) or are copied too (flags 128).

The only limitation is that both must be in the same library. If you want to make the operation with graphs in different libraries, you have to create a copy of one of the two graphs by Fpg_Add or Map_Clone.

User Contributed Notes
Map_Block_Copy
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Sun, 19 Jun 2005 - 16:04:30

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