[mapserver-users] Raster layers with partial transparency
Jason Beverage
jasonbeverage at gmail.com
Wed Sep 16 11:13:02 PDT 2009
Hi all,
I'm serving up some raster imagery with an alpha band that contains
partially transparent pixels using mapscript but when the image is rendered,
the partially transparent portions (alpha between 5 and 10) come through
completely opaque (alpha of 255). Areas that are fully opaque or fully
transparent look fine.
I'm using an output format with the GD/PNG renderer with a RGBA image mode
and "transparent" set to true. I've tried using the AGG/PNG and GDAL/PNG
renderers with the same result.
C# code for the output format:
map.outputformat.name = "PNG";
map.outputformat.driver = "GD/PNG";
map.outputformat.mimetype = "image/png";
map.outputformat.imagemode = (int)MS_IMAGEMODE.MS_IMAGEMODE_RGBA;
map.outputformat.extension = "png";
map.outputformat.transparent = 1;
Any ideas on what I'm doing wrong?
Thanks,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090916/c64091dc/attachment.htm>
More information about the MapServer-users
mailing list