[C] 纯文本查看 复制代码
/* 图形的原始坐标点 */
const GUI_POINT aPoints[] = //三角形
{
// { 40, 20},
// { 0, 20},
// { 20, 0},
{ 0, 0 }, //0-0
{ 5, 0 }, //8-0
{ 7, 2 }, //11-3
{ 5, 4 }, //8-6
{ 0, 4 }, //0-6
};
const GUI_POINT aPoints1[] = //三角形
{
// { 40, 20},
// { 0, 20},
// { 20, 0},
{ 0, 0 }, //0-0
{ 5, 0 }, //8-0
{ 7, 2 }, //11-3
{ 5, 4 }, //8-6
{ 0, 4 }, //0-6
};
const GUI_POINT aPoints2[] =
{
{ 0, 0 }, //0-0
{ 5, 0 }, //8-0
{ 7, 2 }, //11-3
{ 5, 4 }, //8-6
{ 0, 4 }, //0-6
};
/* 用于存储放大后的坐标点 */
GUI_POINT aEnlargedPoints[GUI_COUNTOF(aPoints)];
/* 用于存储放大后的坐标点 */
GUI_POINT aMagnifiedPoints[GUI_COUNTOF(aPoints)];
GUI_POINT aMagnifiedPoints1[GUI_COUNTOF(aPoints1)];
GUI_POINT aMagnifiedPoints2[GUI_COUNTOF(aPoints2)];