00001 /*************************************************************************** 00002 *cr 00003 *cr (C) Copyright 1995-2011 The Board of Trustees of the 00004 *cr University of Illinois 00005 *cr All Rights Reserved 00006 *cr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * RCS INFORMATION: 00011 * 00012 * $RCSfile: ImageIO.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.11 $ $Date: 2010/12/16 04:08:20 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * Write an RGB image to a file. Image routines donated by John Stone, 00019 * derived from Tachyon source code. For now these image file writing 00020 * routines are statically linked into VMD and are not even in an extensible 00021 * list structure. Long-term the renderer interface should abstract from 00022 * most of the details, and use a plugin interface for extensibility. 00023 * For the short-term, this gets the job done. 00024 * 00025 ***************************************************************************/ 00026 00027 #ifndef IMAGEIO_H 00028 #define IMAGEIO_H 00029 00030 #include <stdio.h> 00031 #include <stdlib.h> 00032 00034 void vmd_writergb(FILE *dfile, unsigned char * img, int xs, int ys); 00035 00037 void vmd_writebmp(FILE *dfile, unsigned char * img, int xs, int ys); 00038 00040 void vmd_writeppm(FILE *dfile, unsigned char * img, int xs, int ys); 00041 00043 void vmd_writetga(FILE *dfile, unsigned char * img, int xs, int ys); 00044 00045 #if defined(VMDPNG) 00046 00047 void vmd_writepng(FILE *dfile, unsigned char * img, int xs, int ys); 00048 #endif 00049 00050 #endif
1.2.14 written by Dimitri van Heesch,
© 1997-2002