mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-15 07:34:35 -04:00
Added gif output
This commit is contained in:
parent
3939a1ae54
commit
08c88e85d2
6 changed files with 526 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue