mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-01 23:58:27 -04:00
Add TIFF output option
This commit is contained in:
parent
5810252ab9
commit
ec8cfcbb76
5 changed files with 381 additions and 1 deletions
backend
|
@ -53,6 +53,7 @@ extern int png_pixel_plot(struct zint_symbol *symbol, char *pixelbuf);
|
|||
extern int bmp_pixel_plot(struct zint_symbol *symbol, char *pixelbuf);
|
||||
extern int pcx_pixel_plot(struct zint_symbol *symbol, char *pixelbuf);
|
||||
extern int gif_pixel_plot(struct zint_symbol *symbol, char *pixelbuf);
|
||||
extern int tif_pixel_plot(struct zint_symbol *symbol, char *pixelbuf);
|
||||
|
||||
void buffer_plot(struct zint_symbol *symbol, char *pixelbuf) {
|
||||
/* Place pixelbuffer into symbol */
|
||||
|
@ -189,6 +190,9 @@ int save_raster_image_to_file(struct zint_symbol *symbol, int image_height, int
|
|||
case OUT_GIF_FILE:
|
||||
error_number = gif_pixel_plot(symbol, rotated_pixbuf);
|
||||
break;
|
||||
case OUT_TIF_FILE:
|
||||
error_number = tif_pixel_plot(symbol, rotated_pixbuf);
|
||||
break;
|
||||
default:
|
||||
error_number = bmp_pixel_plot(symbol, rotated_pixbuf);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue