查看: 768|回复: 0
打印 上一主题 下一主题

ucgi多边形扩边函数疑问!

[复制链接]
跳转到指定楼层
沙发
发表于 2015-9-18 10:48:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

本帖最后由 Me、小丁丁 于 2015-8-31 20:24 编辑


GUI_EnlargePolygon函数说好的扩边呢?为什么还减小了?

#define countof( Array ) ( sizeof( Array )/sizeof( Array[0] ) )
const GUI_POINT apoints[]=
{
        {40,20},
        {20,0},
        {0,20},
};
GUI_POINT amagpoint[countof( apoints )];
void sample( void )
{
        int i;
        GUI_SetBkColor( GUI_WHITE );
        GUI_Clear();
        GUI_SetDrawMode( GUI_DM_XOR );

        GUI_FillPolygon( apoints,countof( apoints ),140,110 );
        GUI_EnlargePolygon( amagpoint,apoints,countof( apoints ),5 );
        GUI_FillPolygon( amagpoint,countof( apoints ),140,200 );
}转载

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 加入因仑

本版积分规则

快速回复 返回顶部 返回列表