enum if_en if_conv(char *string){
- conv_if(GIF,IF_GIF)
conv_if(PNG,IF_PNG)
return (-1);
if ((fd = fopen(im->graphfile,"rb")) == NULL)
return 0; /* the file does not exist */
switch (im->imgformat) {
- case IF_GIF:
- size = GifSize(fd,&(im->xgif),&(im->ygif));
- break;
case IF_PNG:
size = PngSize(fd,&(im->xgif),&(im->ygif));
break;
}
}
switch (im->imgformat) {
- case IF_GIF:
- break;
case IF_PNG:
gfx_render_png (canvas,im->xgif,im->ygif,im->zoom,0x0,fo);
break;
im->gdes_c = 0;
im->gdes = NULL;
im->zoom = 1.0;
- im->imgformat = IF_GIF; /* we default to GIF output */
+ im->imgformat = IF_PNG; /* we default to PNG output */
for(i=0;i<DIM(graph_col);i++)
im->graph_col[i]=graph_col[i];
GF_DEF, GF_CDEF, GF_VDEF,
GF_PART};
-enum if_en {IF_GIF=0,IF_PNG=1};
+enum if_en {IF_PNG=0};
enum vdef_op_en {
VDEF_MAXIMUM /* like the MAX in (G)PRINT */
"\t\t[--units-exponent value]\n"
"\t\t[--step seconds]\n"
"\t\t[-f|--imginfo printfstr]\n"
- "\t\t[-a|--imgformat GIF|PNG]\n"
+ "\t\t[-a|--imgformat PNG]\n"
"\t\t[-c|--color COLORTAG#rrggbb[aa]] [-t|--title string]\n"
"\t\t[DEF:vname=rrd:ds-name:CF]\n"
"\t\t[CDEF:vname=rpn-expression]\n"