Add TIFF output option

This commit is contained in:
Robin Stuart 2016-12-30 20:25:58 +00:00
parent 5810252ab9
commit ec8cfcbb76
5 changed files with 381 additions and 1 deletions

View file

@ -1122,6 +1122,12 @@ int ZBarcode_Print(struct zint_symbol *symbol, int rotate_angle) {
symbol->text[0] = '\0';
}
error_number = plot_raster(symbol, rotate_angle, OUT_GIF_FILE);
} else
if (!(strcmp(output, "TIF"))) {
if (symbol->scale < 1.0) {
symbol->text[0] = '\0';
}
error_number = plot_raster(symbol, rotate_angle, OUT_TIF_FILE);
} else
if (!(strcmp(output, "TXT"))) {
error_number = dump_plot(symbol);