[mapserver-users] Transparent gifs in Mapscript
Tom Price
tom_price at yahoo.com
Thu Apr 10 09:11:44 PDT 2008
In Mapscript 3.6, the saveImage method had a parameter that allowed the transparent color to be specified.
$img = $map->draw();
$img->saveImage($imgfile, MS_GIF, hexdec('FFFFCC'), 0, 0);
I'm porting to 4.8.2 and still discovering differences in the object model. The following lines seem to get me a gif, but how do I tell it which color is transparent?
$map->selectOutputFormat('gif');
...
$img = $map->draw();
$img->saveImage($imgfile);
Thanks for your help.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080410/b228493f/attachment.htm>
More information about the MapServer-users
mailing list