IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcDrawLine ( GcImage targetImage,
unsigned short  xStart,
unsigned short  yStart,
unsigned short  xEnd,
unsigned short  yEnd 
)

This function can be used to draw an line onto an image or the frame buffer. The properties of the current pen influence the line's appearance.

Parameters:
targetImage Pointer to the GcImage object to operate on; NULL for the frame buffer
xStart Designates X coordinate of the starting point of the line
yStart Designates Y coordinate of the starting point of the line
xEnd Designates X coordinate of the end point of the line
yEnd Designates Y coordinate of the end point of the line
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcSetPen
Examples:
example08.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