Add enhanced metafile format (EMF) support

This commit is contained in:
Robin Stuart 2016-12-23 16:48:03 +00:00
parent ca88e089ea
commit d1e406b7d2
6 changed files with 1470 additions and 2 deletions

View file

@ -209,6 +209,7 @@ extern int plot_raster(struct zint_symbol *symbol, int rotate_angle, int file_ty
extern int render_plot(struct zint_symbol *symbol, float width, float height); /* Plot to gLabels */
extern int ps_plot(struct zint_symbol *symbol); /* Plot to EPS */
extern int svg_plot(struct zint_symbol *symbol); /* Plot to SVG */
extern int emf_plot(struct zint_symbol *symbol); /* Plot to Metafile */
void error_tag(char error_string[], int error_number) {
char error_buffer[100];
@ -1130,6 +1131,9 @@ int ZBarcode_Print(struct zint_symbol *symbol, int rotate_angle) {
} else
if (!(strcmp(output, "SVG"))) {
error_number = svg_plot(symbol);
} else
if (!(strcmp(output, "EMF"))) {
error_number = emf_plot(symbol);
} else {
strcpy(symbol->errtxt, "Unknown output format (B25)");
error_tag(symbol->errtxt, ZINT_ERROR_INVALID_OPTION);