CurveToBezier example for C++ 5.0 and later
m_RasterView1.GetRaster ().SetCurveClose(CURVE_CLOSE);
m_RasterView1.GetRaster().SetCurveSize(4);
m_RasterView1.GetRaster().SetCurveX(1, 10);
m_RasterView1.GetRaster().SetCurveY(1, 30);
m_RasterView1.GetRaster().SetCurveX(2, 20);
m_RasterView1.GetRaster().SetCurveY(2, 240);
m_RasterView1.GetRaster().SetCurveX(3, 250);
m_RasterView1.GetRaster().SetCurveY(3, 260);
m_RasterView1.GetRaster().SetCurveX(0, 220);
m_RasterView1.GetRaster().SetCurveY(0, 10);
m_RasterView1.GetRaster().SetCurveTension(0.35f);
m_RasterView1.GetRaster().SetCurveType(CURVE_STANDAR);
m_RasterView1.GetRaster().SetRgnCurve(L_POLY_WINDING, L_RGN_SET);
m_RasterView1.SetRgnFrameType(RGNFRAME_ANIMATED);
m_RasterView1.GetRaster().CurveToBezier();
POINT *p = new POINT[m_RasterView1.GetRaster().GetBezierSize()];
for(int i = 0; i < m_RasterView1.GetRaster().GetBezierSize (); ++i)
{
p[i].x = m_RasterView1.GetRaster().GetBezierX(i);
p[i].y = m_RasterView1.GetRaster().GetBezierY(i);
}
CClientDC dc(this);
dc.PolyBezier(p, m_RasterView1.GetRaster().GetBezierSize ());