root/test/Bitmap/test01.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

#include <libming.h>
#include <stdlib.h>

int main()
{
        SWFMovie m = newSWFMovieWithVersion(8);
        SWFDBLBitmapData img = newSWFDBLBitmapData_fromPngFile(MEDIADIR "/image01.png");
        if(img == NULL)
                return EXIT_FAILURE;
        
        SWFMovie_add(m, (SWFBlock)img);
        SWFMovie_save(m, "test01.swf");
        return 0;

}

/* [<][>][^][v][top][bottom][index][help] */