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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Invert a channel

        def invert(image):
    "Invert a channel"

    image.load()
    return image._new(image.im.chop_invert())
        


src/m/a/MapProxy-1.6.0/mapproxy/image/__init__.py   MapProxy(Download)
    alpha = reduce(ImageChops.multiply, mask_channels)
    # invert to get alpha channel
    alpha = ImageChops.invert(alpha)
 
    if len(channels) == 4:

src/m/a/mapproxy-HEAD/mapproxy/image/__init__.py   mapproxy(Download)
    alpha = reduce(ImageChops.multiply, mask_channels)
    # invert to get alpha channel
    alpha = ImageChops.invert(alpha)
 
    if len(channels) == 4: