mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add enhanced metafile format (EMF) support
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user