mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Added gif output
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user