IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcGetPixel ( GcImage targetImage,
unsigned short  x,
unsigned short  y,
GcColor color 
)

This function can be used to determine the color of a single pixel of an image or the frame buffer.

Parameters:
targetImage Pointer to the GcImage object to operate on; NULL for the frame buffer
x X coordinate of the pixel
y Y coordinate of the pixel
color Output parameter: If the function succeeds, this parameter will contain the color of the pixel.
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcSetPixel
Examples:
example06.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