Added gif output

This commit is contained in:
Harald Oehlmann 2016-07-28 20:58:33 +02:00
parent 3939a1ae54
commit 08c88e85d2
6 changed files with 526 additions and 2 deletions

View file

@ -51,6 +51,7 @@ extern int png_pixel_plot(struct zint_symbol *symbol, int image_height, int imag
#endif /* NO_PNG */
extern int bmp_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width, char *pixelbuf, int rotate_angle);
extern int pcx_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width, char *pixelbuf, int rotate_angle);
extern int gif_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width, char *pixelbuf, int rotate_angle);
int save_raster_image_to_file(struct zint_symbol *symbol, int image_height, int image_width, char *pixelbuf, int rotate_angle, int image_type) {
int error_number;
@ -92,6 +93,9 @@ int save_raster_image_to_file(struct zint_symbol *symbol, int image_height, int
case OUT_PCX_FILE:
error_number = pcx_pixel_plot(symbol, scale_height, scale_width, scaled_pixelbuf, rotate_angle);
break;
case OUT_GIF_FILE:
error_number = gif_pixel_plot(symbol, scale_height, scale_width, scaled_pixelbuf, rotate_angle);
break;
default:
error_number = bmp_pixel_plot(symbol, scale_height, scale_width, scaled_pixelbuf, rotate_angle);
break;