test01.c
来自「Ming is a library for generating Macrome」· C语言 代码 · 共 29 行
C
29 行
#include <ming.h>int main(){ int i; SWFMovie m = newSWFMovieWithVersion(8); SWFShape shape1 = newSWFShape(); SWFShape shape2 = newSWFShape(); SWFShape_setLine2(shape1, 1, 25, 0, 0, 128, SWF_LINESTYLE_FLAG_HINTING, 0); SWFShape_movePenTo(shape1, 5, 5); SWFShape_drawLineTo(shape1, 50, 30); SWFShape_setLine2(shape2, 1, 25, 100, 100, 255, SWF_LINESTYLE_FLAG_HINTING, 0); SWFShape_movePenTo(shape2, 5, 5); SWFShape_drawLineTo(shape2, 50, 130); SWFDisplayItem item = SWFMovie_add(m, shape1); SWFMovie_nextFrame(m); SWFMovie_replace(m, item, shape2); SWFMovie_nextFrame(m); SWFMovie_save(m,"test01.swf"); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?