因仑“3+1”工程特种兵精英论坛

标题: ucgi多边形扩边函数疑问! [打印本页]

作者: 张衍波    时间: 2015-9-18 10:48
标题: ucgi多边形扩边函数疑问!

本帖最后由 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 );
}转载






欢迎光临 因仑“3+1”工程特种兵精英论坛 (http://bbs.enlern.com/) Powered by Discuz! X3.4