legend icons and transparency alpha for pixmap

Sean Gillies sgillies at FRII.COM
Thu Feb 17 09:39:06 EST 2005


On Feb 15, 2005, at 9:43 AM, GIRAUD Pierre wrote:

> Hello,
>
> I'll try to be as clear and complete as possible.
>
> Somes recent fixed bugs relative to the use of pixmaps and RGBA
> outputformat modes. I have to use "TRANSPARENCY ALPHA" in each layer
> using pixmap symbol.
> The map is rendered correctly.
> But as far as I'm generating on the fly legend icons with the
> createLegendIcon mapscript function some errors with transparency
> appear
> on IExplorer.
> First if TRANSPARENT is set to ON in the OUTPUTFORMAT (or in the MAP),
> some grey color appear in alpha place.
> In fact, IE does not support 32bits PNG. The solution should be given
> by
> the ".htc" method but it is high client computing cost (file transfert
> for each new page load).
>
> What could be an alternative for my case is to take advantage of the
> IMAGECOLOR in the LEGEND object and set the TRANSPARENT to OFF in
> OUTPUTFORMAT ("transparent" in legend object is now deprecated). I
> thought it acts like a background color . I would like the pixmap
> symbol
> to be sticked on this background-color.
>
> But it seems that the TRANSPARENCY ALPHA has no effect on the legend
> icons.
> Am I right ? Is there any alternative ?
> Is a bug report needed ?
>

Yes, Pierre, please enter a bug, assign it to me, and I will address
this.  It will speed up my work if you can attach example pixmaps and
mapfile to the bug.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies



More information about the mapserver-users mailing list