IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcDrawRoundRect ( GcImage targetImage,
unsigned short  x,
unsigned short  y,
unsigned short  width,
unsigned short  height,
unsigned short  radius 
)

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

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 rectangle
y Designated y coordinate of the upper left corner of the rectangle
width Designated width of the rectangle in pixels
height Designated height of the rectangle in pixels
radius Designated radius of the rectangle in pixels
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

See also:
gcFillRoundRect, gcSetPen





Top of page | Main page

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