src/hg/instinct/hgHeatmap/mainPage.c 1.71
1.71 2009/08/19 23:00:17 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/instinct/hgHeatmap/mainPage.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/instinct/hgHeatmap/mainPage.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -b -B -U 4 -r1.70 -r1.71
--- src/hg/instinct/hgHeatmap/mainPage.c 19 Nov 2008 06:35:59 -0000 1.70
+++ src/hg/instinct/hgHeatmap/mainPage.c 19 Aug 2009 23:00:17 -0000 1.71
@@ -108,9 +108,9 @@
int offset = 0;
int cutoff = height / 7; // TODO, approximately correct.
int lineSpacing = 15;
- vgHoriz = vgOpenGif(height, width, "/dev/null");
+ vgHoriz = vgOpenGif(height, width, "/dev/null", FALSE);
struct slName *sl, *slList = slNameListFromString(string, '_');
struct dyString *dy = newDyString(0), *dyList = NULL;
for (sl = slList; sl; sl = sl->next)
@@ -2569,9 +2569,9 @@
else
{
/* Create gif file and make reference to it in html. */
trashDirFile(&gifTn, "hgh", "ideo", ".gif");
- vg = hvGfxOpenGif(totalW, totalH, gifTn.forCgi);
+ vg = hvGfxOpenGif(totalW, totalH, gifTn.forCgi, FALSE);
hPrintf("<INPUT TYPE=IMAGE SRC=\"%s\" BORDER=1 WIDTH=%d HEIGHT=%d NAME=\"%s\">",
gifTn.forHtml, totalW, totalH, hghClick);
}
@@ -2823,9 +2823,9 @@
totalW = totalW + cartUsualInt(cart, hghFeatureWidth, hgFeatureDefaultPixWidth);
totalW = totalW + hghBetweenVPad + hghSubgroupDefaultPixWidth;
totalW = totalW + hghBetweenVPad + hghTrackContrlBar + hghBetweenVPad;
- vg = hvGfxOpenGif(totalW, totalH, gifTn.forCgi);
+ vg = hvGfxOpenGif(totalW, totalH, gifTn.forCgi, FALSE);
/* Get our grayscale. */
hMakeGrayShades(vg, shadesOfGray, maxShade);
hPrintf("<INPUT TYPE=IMAGE SRC=\"%s\" BORDER=1 WIDTH=%d HEIGHT=%d NAME=\"%s\">",