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