gg第三十八课一些不常用的坐标转换管道

5 gg: conv_smooth_poly1_curve

# include“gg/include/agg_conv_smooth_poly1。h”

模板<类VertexSource>

struct conv_smooth_poly1_curve:

publicconv_curve

VertexSourcesmooth_value1

gg:: path_storage ps;

ps.move_to (100200),

ps.line_to (300500),

ps.line_to (400400),

ps.close_polygon(真正);

gg:: conv_smooth_poly1_curve 中海壳牌(ps);

ras.add_path(中海壳牌);

6 gg:: conv_bspline

Z

#包括“gg/include/agg_conv_bspline。h”

模板<类VertexSource>

structconv_bspline:公共conv_adaptor_vcgen

VertexSourceinterpolation_step

gg:: path_storage ps;

ps.move_to (100200),

ps.line_to (300500),

ps.line_to (400400),

//ps.close_polygon(真正);//

gg:: conv_stroke 中风(ps);

gg:: conv_bspline cbsp(中风);

ras.add_path (cbsp);

6 gg:: conv_marker

7 gg:: conv_curve

VertexSource VertexSource, conv_smooth_poly1_curve


gg第三十八课一些不常用的坐标转换管道