[Mapserver-users] how to paste an image over the map image???

Sean Gillies sgillies at frii.com
Wed Feb 19 15:10:41 EST 2003


On Wednesday, February 19, 2003, at 10:22  AM, Andres Garcia wrote:

> Hi!!
>
> I need to paste an image (a compass) over the map image:
>
> $compass = $mapa->prepareImage();
> $compass->image_path = "/ms_tmp/";
> $compass->image_url = "rosa_vientos.png";
> $compass->saveWebImage($format,0,0,-1);
> $image->pasteImage($compass,-1,0,0);
>
> $image_url = $image->saveWebImage($formato,0,0,-1);
>
> I tried with that code with out success. Can somebody tell me wich is 
> the rigth way to paste an image over the image object that is 
> generated by mapserver???
>
> thanks in advance
>
> Andress Garcia
>
>
Andres,

There is no 'pasteImage' method in MapScript.

If you want to do post-MapServer image processing, you should look
into using Perl ImageMagick or GD modules.  These modules will let
you do what you want and much more.  Do a search on the
web, check their user list archives, and you'll soon come up with
some great tips on how you can overlay images.

cheers,
Sean

--
Sean Gillies
sgillies at frii.com
http://www.frii.com/~sgillies




More information about the mapserver-users mailing list