📄 test02.c
字号:
#include <libming.h>int main(){ int i; SWFMovie m = newSWFMovieWithVersion(8); SWFMorph morph = newSWFMorphShape(); SWFShape shape1 = SWFMorph_getShape1(morph); SWFShape shape2 = SWFMorph_getShape2(morph); SWFShape_setLine2(shape1, 20, 25, 0, 0, 128, SWF_LINESTYLE_FLAG_HINTING, 0); SWFShape_movePenTo(shape1, 5, 5); SWFShape_drawLineTo(shape1, 50, 30); SWFShape_setLine2(shape2, 20, 25, 100, 100, 255, SWF_LINESTYLE_FLAG_HINTING, 0); SWFShape_movePenTo(shape2, 5, 5); SWFShape_drawLineTo(shape2, 50, 130); SWFDisplayItem item = SWFMovie_add(m, (SWFBlock)morph); for(i = 0; i < 10; i++) { SWFDisplayItem_setRatio(item, 0.1 * i); SWFMovie_nextFrame(m); } SWFMovie_save(m,"test02.swf"); return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -