src/tracks/tracks.c 1.9
1.9 2009/08/19 23:34:06 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/tracks/tracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/tracks/tracks.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/tracks/tracks.c 7 Nov 2006 20:03:31 -0000 1.8
+++ src/tracks/tracks.c 19 Aug 2009 23:34:06 -0000 1.9
@@ -1455,9 +1455,9 @@
chmod(mapTn.forCgi, 0666);
/* Save out picture and tell html file about it. */
makeTempName(&gifTn, "trk", ".gif");
-mgSaveGif(mg, gifTn.forCgi);
+mgSaveGif(mg, gifTn.forCgi, FALSE);
printf("<INPUT TYPE=HIDDEN NAME=map VALUE=\"%s\">\n", mapTn.forCgi);
printf(
"<P><INPUT TYPE=IMAGE SRC = \"%s\" BORDER=1 WIDTH=%d HEIGHT=%d NAME = \"mouse\" ALIGN=BOTTOM><BR>\n",
gifTn.forHtml, pixWidth, pixHeight);