[mapserver-commits] r11173 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Mar 16 11:29:19 EDT 2011
Author: warmerdam
Date: 2011-03-16 08:29:19 -0700 (Wed, 16 Mar 2011)
New Revision: 11173
Modified:
trunk/mapserver/mapdrawgdal.c
Log:
add opacity for 16bit classified imagery
Modified: trunk/mapserver/mapdrawgdal.c
===================================================================
--- trunk/mapserver/mapdrawgdal.c 2011-03-16 15:23:59 UTC (rev 11172)
+++ trunk/mapserver/mapdrawgdal.c 2011-03-16 15:29:19 UTC (rev 11173)
@@ -2420,7 +2420,7 @@
rb_cmap[0][i] = layer->class[c]->styles[0]->color.red;
rb_cmap[1][i] = layer->class[c]->styles[0]->color.green;
rb_cmap[2][i] = layer->class[c]->styles[0]->color.blue;
- rb_cmap[3][i] = 255;
+ rb_cmap[3][i] = (255*layer->class[c]->styles[0]->opacity / 100);
}
}
}
More information about the mapserver-commits
mailing list