negative-color-transform.c
来自「swf 解码源程序, 纯C代码」· C语言 代码 · 共 33 行
C
33 行
/* gcc `pkg-config --libs --cflags libming` negative-color-transform.c -o negative-color-transform && ./negative-color-transform */#include <ming.h>#include <stdio.h>intmain (int argc, char **argv){ SWFMovie movie; SWFDisplayItem item; SWFJpegBitmap image; SWFShape shape; if (Ming_init ()) return 1; Ming_useSWFVersion (7); movie = newSWFMovie(); SWFMovie_setRate (movie, 1); SWFMovie_setDimension (movie, 10, 10); image = newSWFJpegBitmap (fopen ("bw.jpg", "r+")); shape = newSWFShapeFromBitmap ((SWFBitmap) image, SWFFILL_BITMAP); item = SWFMovie_add (movie, (SWFBlock) shape); SWFDisplayItem_setCXform (item, newSWFCXform (100, 0, 0, 0, -90./256, 1.0, 1.0, 1.0)); SWFMovie_nextFrame (movie); SWFMovie_save (movie, "negative-color-transform.swf"); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?