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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Fill a channel with a given grey level

        def constant(image, value):
    "Fill a channel with a given grey level"

    return Image.new("L", image.size, value)
        


src/m/a/MapProxy-1.6.0/mapproxy/image/merge.py   MapProxy(Download)
                    alpha = ImageChops.multiply(
                        alpha,
                        ImageChops.constant(alpha, 255 * opacity)
                    )
                    img.putalpha(alpha)

src/m/a/mapproxy-HEAD/mapproxy/image/merge.py   mapproxy(Download)
                    alpha = ImageChops.multiply(
                        alpha,
                        ImageChops.constant(alpha, 255 * opacity)
                    )
                    img.putalpha(alpha)