src/hg/inc/hvGfx.h 1.5

1.5 2009/08/19 22:28:36 angie
Added option to mgSaveToGif and its call stack, to use GIF's Graphic Control Extension to make memgfx's background color (0) transparent. Also corrected terminology for PNG in .h files: useAlpha -> useTransparency.
Index: src/hg/inc/hvGfx.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/hvGfx.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/inc/hvGfx.h	5 Aug 2009 23:34:31 -0000	1.4
+++ src/hg/inc/hvGfx.h	19 Aug 2009 22:28:36 -0000	1.5
@@ -18,13 +18,20 @@
     int clipMinY;
     int clipMaxY;
 };
 
-struct hvGfx *hvGfxOpenGif(int width, int height, char *fileName);
-/* Open up something that we'll write out as a gif someday. */
+struct hvGfx *hvGfxOpenGif(int width, int height, char *fileName, boolean useTransparency);
+/* Open up something that we'll write out as a GIF someday.
+ * If useTransparency, 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 hvGfx *hvGfxOpenPng(int width, int height, char *fileName, boolean useAlpha);
-/* Open up something that we'll write out as a PNG someday. */
+
+struct hvGfx *hvGfxOpenPng(int width, int height, char *fileName, boolean useTransparency);
+/* Open up something that we'll write out as a PNG someday.
+ * If useTransparency, 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 hvGfx *hvGfxOpenPostScript(int width, int height, char *fileName);
 /* Open up something that will someday be a PostScript file. */