示例#1
0
static int output_er_header(FILE * er_file, gchar * name, int llx, int lly, int urx, int ury)
{
  gchar *time;

  fprintf(er_file, "#Elastic Reality Shape File\n\n#Date: %s\n\n", time = at_time_string());

  g_free(time);

  fprintf(er_file, "ImageSize = {\n\tWidth = %d\n\tHeight = %d\n}\n\n", urx - llx, ury - lly);

  return 0;
}
示例#2
0
static int output_epd_header(FILE* epd_file, gchar* name,
			     int llx, int lly, int urx, int ury)
{
  gchar* time;

  OUT_LINE ("%EPD-1.0");
  OUT1 ("%% Created by %s\n", at_version(TRUE));
  OUT1 ("%% Title: %s\n", name);
  OUT1 ("%% CreationDate: %s\n", time = at_time_string ());
  OUT4 ("%%BBox(%d,%d,%d,%d)\n", llx, lly, urx, ury);

  g_free (time);

  return 0;
}