#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <math.h>
#include "potracelib.h"
#include "curve.h"
#include "main.h"
#include "backend_svg.h"
#include "lists.h"
#include "auxiliary.h"
Go to the source code of this file.
Functions | |
int | page_svg (FILE *fout, potrace_path_t *plist, imginfo_t *imginfo) |
static void | ship (FILE *fout, char *fmt,...) |
static void | shiptoken (FILE *fout, char *token) |
static void | svg_curveto (FILE *fout, dpoint_t p1, dpoint_t p2, dpoint_t p3) |
static int | svg_jaggy_path (FILE *fout, point_t *pt, int n, int abs) |
static void | svg_lineto (FILE *fout, dpoint_t p) |
static void | svg_moveto (FILE *fout, dpoint_t p) |
static int | svg_path (FILE *fout, potrace_curve_t *curve, int abs) |
static void | svg_rmoveto (FILE *fout, dpoint_t p) |
static point_t | unit (dpoint_t p) |
static void | write_paths_opaque (FILE *fout, potrace_path_t *tree) |
static void | write_paths_transparent (FILE *fout, potrace_path_t *tree) |
Variables | |
static int | column = 0 |
static point_t | cur |
static char | lastop = 0 |
static int | newline = 1 |
int page_svg | ( | FILE * | fout, |
potrace_path_t * | plist, | ||
imginfo_t * | imginfo | ||
) |
Definition at line 275 of file backend_svg.c.
static void ship | ( | FILE * | fout, |
char * | fmt, | ||
... | |||
) | [static] |
Definition at line 57 of file backend_svg.c.
static void shiptoken | ( | FILE * | fout, |
char * | token | ||
) | [static] |
Definition at line 42 of file backend_svg.c.
static void svg_curveto | ( | FILE * | fout, |
dpoint_t | p1, | ||
dpoint_t | p2, | ||
dpoint_t | p3 | ||
) | [static] |
Definition at line 109 of file backend_svg.c.
static int svg_jaggy_path | ( | FILE * | fout, |
point_t * | pt, | ||
int | n, | ||
int | abs | ||
) | [static] |
Definition at line 162 of file backend_svg.c.
static void svg_lineto | ( | FILE * | fout, |
dpoint_t | p | ||
) | [static] |
Definition at line 95 of file backend_svg.c.
static void svg_moveto | ( | FILE * | fout, |
dpoint_t | p | ||
) | [static] |
Definition at line 79 of file backend_svg.c.
static int svg_path | ( | FILE * | fout, |
potrace_curve_t * | curve, | ||
int | abs | ||
) | [static] |
Definition at line 130 of file backend_svg.c.
static void svg_rmoveto | ( | FILE * | fout, |
dpoint_t | p | ||
) | [static] |
Definition at line 86 of file backend_svg.c.
Definition at line 29 of file backend_svg.c.
static void write_paths_opaque | ( | FILE * | fout, |
potrace_path_t * | tree | ||
) | [static] |
Definition at line 194 of file backend_svg.c.
static void write_paths_transparent | ( | FILE * | fout, |
potrace_path_t * | tree | ||
) | [static] |
Definition at line 237 of file backend_svg.c.
int column = 0 [static] |
Definition at line 39 of file backend_svg.c.
Definition at line 37 of file backend_svg.c.
char lastop = 0 [static] |
Definition at line 38 of file backend_svg.c.
int newline = 1 [static] |
Definition at line 40 of file backend_svg.c.