I&#39;ve been playing around with the mapserver6 sandbox and the cairo driver in this weekend, fixed some issues and implemented some additions in the following changesets:<br><br><a href="http://trac.osgeo.org/mapserver/changeset/10718">http://trac.osgeo.org/mapserver/changeset/10718</a><br>
<a href="http://trac.osgeo.org/mapserver/changeset/10719">http://trac.osgeo.org/mapserver/changeset/10719</a><br><a href="http://trac.osgeo.org/mapserver/changeset/10720">http://trac.osgeo.org/mapserver/changeset/10720</a><br>
<a href="http://trac.osgeo.org/mapserver/changeset/10721">http://trac.osgeo.org/mapserver/changeset/10721</a><br><a href="http://trac.osgeo.org/mapserver/changeset/10722">http://trac.osgeo.org/mapserver/changeset/10722</a><br>
<a href="http://trac.osgeo.org/mapserver/changeset/10723">http://trac.osgeo.org/mapserver/changeset/10723</a><br><a href="http://trac.osgeo.org/mapserver/changeset/10724">http://trac.osgeo.org/mapserver/changeset/10724</a><br>
<a href="http://trac.osgeo.org/mapserver/changeset/10725">http://trac.osgeo.org/mapserver/changeset/10725</a><br><a href="http://trac.osgeo.org/mapserver/changeset/10726">http://trac.osgeo.org/mapserver/changeset/10726</a><br>
<br>The most significant addition from my side is 2 new outputformats to the cairo renderer, namely:<br><br>CAIRO/WINGDI  - To support drawing onto a Windows GDI device.<br>CAIRO/WINGDIPRINT  -  To support drawing onto a Windows GDI printing device.<br>
<br>Initializing these formats require a GDI handle to be specified externally, for this reason these output formats are not created by default. I&#39;ve added a new method in the mapscript interface (outputFormatObj.AttachDevice) which requires to specify the device context by a void* parameter. Typemaps would be required for the various SWIG bindings to map the void* handle to a reasonable type in the target languages. I&#39;ve added support for this in the C# bindings along with the following examples to show how to utilize this new feature:<br>
<br><a href="http://trac.osgeo.org/mapserver/browser/sandbox/mapserver6/mapscript/csharp/examples/drawmapDirect.cs">http://trac.osgeo.org/mapserver/browser/sandbox/mapserver6/mapscript/csharp/examples/drawmapDirect.cs</a><br>
<a href="http://trac.osgeo.org/mapserver/browser/sandbox/mapserver6/mapscript/csharp/examples/drawmapDirectPrint.cs">http://trac.osgeo.org/mapserver/browser/sandbox/mapserver6/mapscript/csharp/examples/drawmapDirectPrint.cs</a> <br>
<br>I&#39;m looking foward to merge all this stuff back in trunk, so that I&#39;ll be able provide the related binaries from <a href="http://vbkto.dyndns.org/sdk/">http://vbkto.dyndns.org/sdk/</a> for those who interested in testing with the cairo driver.<br>
<br>Best regards,<br><br>Tamas<br><br><br>