|
||||
[Chameleon] ImageObjects and gd imagesHuub Fleuren huub.fleuren@geodan.nlFri, 07 Nov 2003 15:08:41 +0100
|
Hello I would like to compose a final layout image from a drawn map and scalebar image from the mapserver and a default layout, which is a PNG on disk. I found that a $layout_img gd image object create with $layout_img=imagecreatefrompng("a4portrait.png"); is not the same as an imageobject create with mapscript like $oImage = oMap->draw(); A solution to this would be to save the map $szMapUrl = $oImage->saveWebImage("") and read such file with gd to paste a new image together from diskfiles But i would rather paste the final layout with oMap->pasteImage functionality. This would be possible, if a MapScript imageObject coould be read from file or i'm missing something: can a gd image be cast into a mapscript image object? Greetings Huub -- ------------------------------------- Geodan IT b.v. Buitenhaven 27-A 5211 TP 's-Hertogenbosch (NL) ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 Mobiel: ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- E-mail: huub.fleuren@geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer -------------------------------------
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |