1 #include <libming.h>
2 #include <stdlib.h>
3 
main()4 int main()
5 {
6 	SWFMovie m = newSWFMovieWithVersion(8);
7 	SWFShape s = newSWFShape();
8 	SWFFill f = SWFShape_addSolidFill(s, 255,0,0,255);
9 	SWFShape_setRightFill(s, f);
10 	Ming_setCubicThreshold(10);
11 	SWFShape_movePenTo(s, 167.000000, 69.875040);
12 	SWFShape_drawCubicTo(s, 198.796531,69.875040,224.624960,95.703469,224.624960,127.500000);
13 	SWFShape_drawCubicTo(s, 224.624960,159.296531,198.796531,185.124960,167.000000,185.124960);
14 	SWFShape_drawCubicTo(s, 135.203469,185.124960,109.375040,159.296531,109.375040,127.500000);
15 	SWFShape_drawCubicTo(s, 109.375040,95.703469,135.203469,69.875040,167.000000,69.875040);
16 	SWFMovie_add(m, s);
17 	SWFMovie_save(m, "test02.swf");
18 	return 0;
19 }
20