in Draw:
#if 1
m_pa[i] = m_pa[0]; // close the shape
Polyline(dc, m_pa, sides + 1);
#else
CPoint pt2[200];
int j = 0;
for (int i = 0; i < sides; i++) {
pt2[j++] = m_pa[i];
if (i & 1)
pt2[j++] = CPoint(m_pa[i].x, m_pa[i].y);
}
pt2[j++] = pt2[0];
PolyBezier(dc, pt2, j);
#endif
Saturday, October 08, 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment