IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcDrawText ( GcImage targetImage,
unsigned short  x,
unsigned short  y,
const char *  text 
)

This function can be used to draw a text onto an image or the frame buffer.
The currently selected font will be used.

Parameters:
targetImage Pointer to the GcImage object to operate on; NULL for the frame buffer
x Designated x coordinate of the upper left corner of the text output
y Designated y coordinate of the upper left corner of the text output
text Text to be put out
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcDrawTextFormat, gcDrawTextFormatV, gcSetFont, gcGetTextWidth, gcGetTextHeight, gcSetTextEncoding
Examples:
example02.c, example04.c, and example05.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