IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcDrawImageEx ( GcImage targetImage,
unsigned short  xTarget,
unsigned short  yTarget,
GcImage sourceImage,
unsigned short  xSource,
unsigned short  ySource,
unsigned short  width,
unsigned short  height 
)

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.
This is the extended version of the gcDrawImage() function. It allows you to copy only a part of the source image.

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.
xTarget X coordinate of the point on the target image where the source image will be drawn (upper left corner of the source image)
yTarget 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.
xSource X coordinate of the upper left corner of the clipping of the source image that is to be drawn
ySource Y coordinate of the upper left corner of the clipping of the source image that is to be drawn
width Designated width in pixels of the clipping of the source image that is to be drawn
height Designated width in pixels of the clipping of the source image that is to be drawn
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcDrawImage





Top of page | Main page

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