⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test01.c

📁 Ming is a library for generating Macromedia Flash files (.swf), written in C, and includes useful ut
💻 C
字号:
#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 fill = newSWFGradientFillStyle(g, SWFFILL_LINEAR_GRADIENT);	SWFShape shape = newSWFShape();	SWFShape_setRightFillStyle(shape, fill);		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, "test01.swf");	return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -