圆角矩形

函数原型

函数名

px_void PX_GeoDrawRoundRect(px_surface *psurface, px_int left, px_int top, px_int right, px_int bottom,px_float roundRaduis,px_float linewidth,px_color color);

说明

绘制一个反走样圆角矩形

参数

psurface 渲染表面

left top right bottom 位置描述

roundRadius 圆角半径

lineWidth 线宽

color 颜色

 

示范

PX_ApplicationRender中添加代码(如下所示),绘制一个:

(100,100)à(600,200) 圆角半径为25,线宽为5的红色圆角矩形