IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcDrawImage ( GcImage targetImage,
unsigned short  x,
unsigned short  y,
GcImage sourceImage 
)

This function can be used to draw one image onto another.
As well the source as the target image can be either a GcImage object or a frame buffer.

Parameters:
targetImage Pointer to the target GcImage object to operate on; NULL for the frame buffer
If double buffering is activated, the buffer that is currently not being displayed is used.
x X coordinate of the point on the target image where the source image will be drawn (upper left corner of the source image)
y Y coordinate of the point on the target image where the source image will be drawn (upper left corner of the source image)
sourceImage Pointer to the source GcImage object to operate on; NULL for the frame buffer
If double buffering is activated, the buffer that is currently being displayed is used.
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcDrawImageEx
Examples:
example02.c.





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Jun 27 14:21:34 2017 by Doxygen 1.6.1