src/inc/vGfx.h 1.14

1.14 2009/08/05 23:34:31 angie
Added conditional use (USE_PNG) of external library libpng (http://libpng.org/pub/png/, sourceforge) to write memgfx images in the PNG format instead of GIF. Currently used (conditionally!) only for hgTracks' main image. This is to support Tim's enhancements for horizontal scrolling of the browser track image. Image file size also appears smaller than GIF but should try more test cases.
Index: src/inc/vGfx.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/vGfx.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -B -U 4 -r1.13 -r1.14
--- src/inc/vGfx.h	20 Feb 2008 00:42:33 -0000	1.13
+++ src/inc/vGfx.h	5 Aug 2009 23:34:31 -0000	1.14
@@ -93,8 +93,14 @@
 struct vGfx *vgOpenGif(int width, int height, char *fileName);
 /* Open up something that we'll write out as a gif 
  * someday. */
 
+struct vGfx *vgOpenPng(int width, int height, char *fileName, boolean useAlpha);
+/* Open up something that will write out a PNG file upon vgClose.  
+ * If useAlpha, then the first color in memgfx's colormap/palette is
+ * assumed to be the image background color, and pixels of that color
+ * are made transparent. */
+
 struct vGfx *vgOpenPostScript(int width, int height, char *fileName);
 /* Open up something that will someday be a PostScript file. */
 
 void vgClose(struct vGfx **pVg);