?? test04.c
字號(hào):
#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <libming.h>int main(){ SWFMovie m = newSWFMovieWithVersion(8); FILE *file = fopen(MEDIADIR "/image01.dbl", "rb"); if(file == NULL) { perror(MEDIADIR "/image01.dbl"); exit(EXIT_FAILURE); } SWFDBLBitmap img = newSWFDBLBitmap(file); SWFFillStyle fill = newSWFBitmapFillStyle((SWFCharacter)img, SWFFILL_CLIPPED_BITMAP); 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, "test04.swf"); return 0;}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -