Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Image with large, faded message.

src/m/a/MapProxy-1.6.0/mapproxy/tilefilter.py   MapProxy(Download)
"""
 
from mapproxy.image.message import WatermarkImage
 
def create_watermark_filter(conf, context, **kw):
    def _watermark_filter(tile):
        placement = tile_watermark_placement(tile.coord, spacing == 'wide')
        wimg = WatermarkImage(text, image_opts=tile.source.image_opts,
            placement=placement, opacity=opacity, font_size=font_size,
            font_color=font_color)

src/m/a/mapproxy-HEAD/mapproxy/tilefilter.py   mapproxy(Download)
"""
 
from mapproxy.image.message import WatermarkImage
 
def create_watermark_filter(conf, context, **kw):
    def _watermark_filter(tile):
        placement = tile_watermark_placement(tile.coord, spacing == 'wide')
        wimg = WatermarkImage(text, image_opts=tile.source.image_opts,
            placement=placement, opacity=opacity, font_size=font_size,
            font_color=font_color)