- This wiki is out of date, use the continuation of this wiki instead
Map block copy
From FenixWiki
(Difference between revisions)
Revision as of 19:53, 17 February 2008 (edit) Eckolin (Talk | contribs) (New page on map_block_copy!) ← Previous diff |
Revision as of 19:57, 17 February 2008 (edit) (undo) Eckolin (Talk | contribs) m Next diff → |
||
Line 3: | Line 3: | ||
==Definition== | ==Definition== | ||
- | '''INT''' map_block_copy ( <'''INT''' destinationFileID> , <'''INT''' destinationGraphID> , <'''INT''' destinationX> <'''INT''' destinationY> , <'''INT''' originGraphID> , <'''INT''' x> , <'''INT''' y> , <'''INT''' width> , <'''INT''' height>, <'''INT''' blitflags> ) | + | '''INT''' map_block_copy ( <'''INT''' destinationFileID> , <'''INT''' destinationGraphID> , <'''INT''' destinationX> , <'''INT''' destinationY> , <'''INT''' originGraphID> , <'''INT''' x> , <'''INT''' y> , <'''INT''' width> , <'''INT''' height>, <'''INT''' blitflags> ) |
Draws ([[blit]]s) a rectangular block from one [[graphic]] onto another graphic. | Draws ([[blit]]s) a rectangular block from one [[graphic]] onto another graphic. |
Revision as of 19:57, 17 February 2008
Contents |
Definition
INT map_block_copy ( <INT destinationFileID> , <INT destinationGraphID> , <INT destinationX> , <INT destinationY> , <INT originGraphID> , <INT x> , <INT y> , <INT width> , <INT height>, <INT blitflags> )
Draws (blits) a rectangular block from one graphic onto another graphic.
If the entire graphic is to be blitted, map_put() or map_xput() can be used.
Parameters
INT destinationFileID | - The fileID of the file that holds the destination graphic. |
INT destinationGraphID | - The graphID of the graphic to draw on. |
INT destinationX | - Where on the destination graph's x-axis to put the block. |
INT destinationY | - Where on the destination graph's y-axis to put the block. |
INT originGraphID | - The graphID of the graphic to draw with. |
INT x | - The x-axis of the upperleft corner of the origin block. |
INT y | - The y-axis of the upperleft corner of the origin block. |
INT width | - The width of the block in pixels. |
INT height | - The height of the block in pixels) |
INT blitflags | - What blit flags to draw the graphic with. |
Returns
INT : true
Notes
Blit flags can be used to give the drawing (blitting) a special effect.
Errors
Unsupported color depth | - The origin graphic's color depth is greater than the destination graph's. |
Maps Functions | |
• Graphic_info() • Map_block_copy() • Map_clear() • Map_clone() • Map_put() • Map_put_pixel() • Map_xput() • Map_xputnp() • New_map() • Save_png() • Unload_map() • |