void DrawCurveOfBezierArc()

  {

    agg::rendering_buffer &rbuf = rbuf_window();

    agg::pixfmt_bgr24 pixf(rbuf);


    typedef agg::renderer_base<agg::pixfmt_bgr24> renderer_base_type;

    renderer_base_type renb(pixf);


    typedef agg::renderer_scanline_aa_solid<renderer_base_type> renderder_scanline_type;

    renderder_scanline_type rensl(renb);


    agg::rasterizer_scanline_aa<> ras;

    agg::scanline_u8 sl;

    ras.reset();


    agg::bezier_arc a(100,100, 50,50, 0.0, agg::pi/2);

    agg::conv_curve<agg::bezier_arc> c(a);

    agg::conv_stroke<agg::conv_curve<agg::bezier_arc> > s(c);


    agg::conv_stroke<agg::bezier_arc> stroke(a);


    ras.add_path(s);

    //ras.add_path(stroke);//对比查看


    agg::render_scanlines_aa_solid(ras,sl,renb,agg::rgba8(255,0,0));

  }


补充:

可识别VertexSource中的曲线信息 构造参数为VertexSource,conv_smooth_poly1_curve就是基于它实现的。例程里的顶点没有曲线的信息,在文字输出时会用到她的。