mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 14:04:19 -04:00
Add enhanced metafile format (EMF) support
This commit is contained in:
parent
ca88e089ea
commit
d1e406b7d2
6 changed files with 1470 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue