Exemplo n.º 1
0
int output_swf_writer(FILE* file, at_string name,
		      int llx, int lly, int urx, int ury, 
		      at_output_opts_type * opts,
		      spline_list_array_type shape,
		      at_msg_func msg_func, 
		      at_address msg_data,
		      at_address user_data)
{
  int width = urx - llx;
  int height = ury - lly;
  SWFMovie m;

#ifdef _WINDOWS 
  if(file == stdout)
    {
      fprintf(stderr, "This driver couldn't write to stdout!\n");
      return -1;
    }
#endif

  Ming_init();
  Ming_setCubicThreshold(20000);

  m = newSWFMovie();

  out_splines(m, shape, height);

  SWFMovie_setDimension(m, SWFSCALE*(float)width, SWFSCALE*(float)height);
  SWFMovie_setRate(m, FPS);
  SWFMovie_nextFrame(m);
  SWFMovie_output(m, fileOutputMethod, file);
  return 0;
}
Exemplo n.º 2
0
EXPORT BOOL WINAPI ming_setCubicThreshold(int num, int p2, int p3, int p4)
{
	lstrcpy(funcname, "ming_setCubicThreshold");
	Ming_setCubicThreshold(num);
	return 0;
}