Download Graphics API User`s Manual
Transcript
GAPI Graphics API User’s Manual
3.2.1
LCDBMPCopy
Copies source BMP to destination BMP.
Format
gapiResp_type LCDBMPCopy
( BMP_type const *const s, BMP_type *d, sI16 PosX, sI16 PosY );
Parameters
s
Pointer to the source BMP structure.
d
Pointer to the destination BMP structure.
PosX
X axis offset within destination raster to place source.
PosY
Y axis offset within destination raster to place source.
Return Values
0 if successful, non-zero if failure.
Properties
Prototyped in file ”gapi.h”
Implemented in file “gapi.h”
Description
This routine will copy the raster data of a source BMP to the raster data of a destination BMP. Translation
of pixel type will automatically be performed to the type specified in the destination BMP. Clipping will be
performed based on the destination limits (no data will be copied outside of the raster area).
Example
extern BMP_type const *picture;
extern BMP_type *frame;
{
LCDBMPCopy(picture, frame, 20, 40);
}
20