sevreporter/src/chartImage.cxx
//
// Private interface to create image in PNG format
//
Private interface to create image in PNG format
Private interface to create image in PNG format
int chartImage::generatePNG(qualityItem *qi, queryFolder *qf, char const *filename)
{
  int retval = -1;
  char const *tempfile = 0;
  char const *command  = 0;
  if ( qi && qf && filename )
    {
      if ( tempfile = pdtempname(0) )
	{
	  if ( generateGIF(qi, qf, tempfile) >= 0 )
	    {
	      if ( convertGIFtoPNG(tempfile, filename) >= 0 )
		{
		  retval = 0;
		}
	      pdrmfile(tempfile);
	    }
	}
    }
  return retval;
}
int chartImage :: generatePNG ( qualityItem * qi , queryFolder * qf , char const * filename ) { int retval = -1 ; char const * tempfile = 0 ; char const * command = 0 ; if ( qi && qf && filename ) { if ( tempfile = pdtempname ( 0 ) ) { if ( generateGIF ( qi , qf , tempfile ) >= 0 ) { if ( convertGIFtoPNG ( tempfile , filename ) >= 0 ) { retval = 0 ; } pdrmfile ( tempfile ) ; } } } return retval ; }
Private interface to create image in PNG format
Private interface to create image in PNG format
// get a temp file to hold a GIF image // generate a GIF of the data // convert GIF to PNG