[GRASS-SVN] r41239 - grass/branches/develbranch_6/raster/r.out.png

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 28 21:15:01 EST 2010


Author: hamish
Date: 2010-02-28 21:15:01 -0500 (Sun, 28 Feb 2010)
New Revision: 41239

Modified:
   grass/branches/develbranch_6/raster/r.out.png/r.out.png.c
Log:
png bg color, still not right, but closer

Modified: grass/branches/develbranch_6/raster/r.out.png/r.out.png.c
===================================================================
--- grass/branches/develbranch_6/raster/r.out.png/r.out.png.c	2010-02-28 21:01:55 UTC (rev 41238)
+++ grass/branches/develbranch_6/raster/r.out.png/r.out.png.c	2010-03-01 02:15:01 UTC (rev 41239)
@@ -267,10 +267,14 @@
 
     png_set_compression_level(png_ptr, png_compr);
 
-/* FIXME: this should be set
-    if(do_alpha)
-	png_set_background(png_structp png_ptr, png_color_16p background_color,
-	    int background_gamma_code, int need_expand, double background_gamma);
+/* FIXME
+    if(do_alpha) {
+	png_color_16p background_color;
+	background_color->red = (png_uint_16)def_red;
+	background_color->blue = (png_uint_16)def_grn;
+	background_color->green = (png_uint_16)def_blu;
+	png_set_bKGD(png_ptr, info_ptr, background_color);
+    }
 */
 
     G_verbose_message(_("Converting <%s>..."), rast->answer);



More information about the grass-commit mailing list