Map block copy

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT map_block_copy ( <INT fileID> , <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 fileID - The fileID of the file that holds the destination and origin graphics.
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-coordinate of the upperleft corner of the origin block.
INT y - The y-coordinate 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

Invalid origin graph - The origin graph is invalid.
Invalid destination graph - The destination graph is invalid.
Unsupported color depth - The origin graphic's color depth is greater than the destination graph's.


Maps Functions
Get_pixel()Graphic_info()Graphic_set()Map_block_copy()Map_buffer()Map_clear()Map_clone()Map_del()Map_exists()Map_get_pixel()Map_info()Map_info_get()Map_info_set()Map_load()Map_name()Map_new()Map_put()Map_put_pixel()Map_save()Map_set_name()Map_unload()Map_xput()Map_xputnp()Pcx_load()Png_load()Png_save()Point_get()Point_set()Put_pixel()