test09.c
来自「Ming is a library for generating Macrome」· C语言 代码 · 共 29 行
C
29 行
#include <libming.h>int main(){ SWFMovie m = newSWFMovieWithVersion(8); SWFGradient g = newSWFGradient(); SWFGradient_addEntry(g, 0, 0, 0, 0, 255); SWFGradient_addEntry(g, 1, 255, 255, 255, 255); SWFFillStyle fs = newSWFGradientFillStyle(g, SWFFILL_LINEAR_GRADIENT); SWFShape shape = newSWFShape(); SWFShape_setRightFillStyle(shape, fs); SWFFill fill = newSWFFill(fs); SWFFill_move(fill, 50, 50); SWFShape_setLine(shape, 1, 0,0,0,255); SWFShape_drawLine(shape, 100, 0); SWFShape_drawLine(shape, 0, 100); SWFShape_drawLine(shape, -100, 0); SWFShape_drawLine(shape, 0, -100); SWFMovie_add(m, (SWFBlock)shape); SWFMovie_save(m, "test09.swf"); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?