src/shsave.c

00001 
00006 /*
00007  *  PROGRAM NAME:  sh
00008  *
00009  *  (c) COPYRIGHT INTERNATIONAL BUSINESS MACHINES
00010  *  CORPORATION 12/1/2001.  ALL RIGHTS RESERVED.
00011  *
00012  *  Please refer to the LICENSE file in the top directory
00013  *
00014  *      author: Mike Henderson mhender@watson.ibm.com
00015  */
00016 
00017 static char *id="@(#) $Id: shsave.c,v 1.2 2006/08/17 19:28:17 mhender Exp $";
00018 
00019 #include <shInternal.h>
00020 #include <shConfig.h>
00021 
00024 char *shOutputFormat=(char*)NULL;
00025 
00036 void shsave(char *name,int *ln,int nln)
00037  {
00038 
00039 /*  Write image to disk.*/
00040 
00041   if(!strcmp(shOutputFormat,"postscript"))
00042     shputps(name,ln,&shIMax,&shJMax,shRedBuffer,shGreenBuffer,shBlueBuffer,nln);
00043 #ifdef HAVE_LIBTIFF
00044    else if(!strcmp(shOutputFormat,"tiff"))
00045     shputtiff(name, shIMax,shJMax, shRedBuffer,shGreenBuffer,shBlueBuffer);
00046 #endif
00047    else
00048     shputps(name,ln,&shIMax,&shJMax,shRedBuffer,shGreenBuffer,shBlueBuffer,nln);
00049   return;
00050  }

Generated on Thu Aug 17 15:29:43 2006 for sh by  doxygen 1.4.6