[mapserver-dev] Add support for bitmap patterns

Tamas Szekeres szekerest at gmail.com
Mon Oct 1 03:55:54 PDT 2012


Hi All,

I've created a fairly simple addition for supporting bitmap patterns which
can be specified inline as follows:

SYMBOL
    NAME "brushpattern"
    TYPE PIXMAP
    IMAGE
"|10001000|01000001|00100010|00010100|00001000|00000000|10101010|00000000"
END

With this addition we could easily define brush patterns which are aware of
color and backgroundcolor settings and rendered equally well with the
various kind of renderers.
It must be noted that defining the same with vector symbols can not provide
the same look for most of the renderers (agg, cairo), due to the possible
antialias behaviour of the line drawings.

The proposed solution for this option can be found here:
https://github.com/szekerest/mapserver/commit/47ec087de72515a73298f9c024b466dc4b3c1d77


Let me know it that would be reasonable.

Best regards,

Tamas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20121001/9297ea8d/attachment.html>


More information about the mapserver-dev mailing list