大学生
最后登录1970-1-1
在线时间 小时
注册时间2014-4-11
|
楼主 |
发表于 2014-6-13 16:47:19
|
显示全部楼层
笪芳馥 发表于 2014-6-13 15:57
没有用过这函数,楼主可以写个小程序测试下
const GUI_POINT aPoints[] = {
{ 40, 20},
{ 0, 20},
{ 20, 0}
};
GUI_POINT aEnlargedPoints[GUI_COUNTOF(aPoints)];
void Sample(void)
{
int i;
GUI_Clear();
GUI_SetDrawMode(GUI_DM_XOR);
GUI_FillPolygon(aPoints, GUI_COUNTOF(aPoints), 140, 110);
for (i = 1; i < 10; i++)
{
GUI_EnlargePolygon(aEnlargedPoints, aPoints, GUI_COUNTOF(aPoints), i * 5);
GUI_FillPolygon(aEnlargedPoints, GUI_COUNTOF(aPoints), 140, 110);
}
} |
|