IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcDrawTextFormat ( GcImage targetImage,
unsigned short  x,
unsigned short  y,
const char *  format,
  ... 
)

This function, like printf(), builds an output string based on a format string and a variable number of additional arguments. It then calls gcDrawText() to draw the output string onto an image or the frame buffer.
The currently selected font will be used.
For details on the format string and the additional arguments, please refer to the documentation of printf().

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
format Format string
... Variable number of additional arguments
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcDrawTextFormatV, gcDrawText, gcSetFont, gcSetTextEncoding
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