Did I find the right examples for you? yes no

All Samples(24)  |  Call(24)  |  Derive(0)  |  Import(0)
Invert (negate) the image.

:param image: The image to invert.
:return: An image.

        def invert(image):
    """
    Invert (negate) the image.

    :param image: The image to invert.
    :return: An image.
    """
    lut = []
    for i in range(256):
        lut.append(255-i)
    return _lut(image, lut)
        


src/e/p/EPD-HEAD/libraries/EReader/examples/Album/wifit.py   EPD(Download)
    def invert_image(self, event=None):
        child = self.get_selected()
        if child:
            try:
                child.image1 = PIL.ImageOps.invert(child.image1.convert('L'))

src/d/j/django-tint-0.1/tint/imageprocs/default.py   django-tint(Download)
    def invert(self, image, params):
        image = image.convert('RGB')
        return ImageOps.invert(image)
 
    def flip(self, image, params):

src/d/j/django-tint-HEAD/tint/imageprocs/default.py   django-tint(Download)
    def invert(self, image, params):
        image = image.convert('RGB')
        return ImageOps.invert(image)
 
    def flip(self, image, params):

src/a/n/android-tools-HEAD/eventrecorder/src/shell/imagediff.py   android-tools(Download)
    difference = difference.convert('RGB')
    difference = ImageOps.grayscale(difference)
    difference = ImageOps.invert(difference)
    try:
        difference.save(args[2], optimize='1')

src/e/c/eclectus-HEAD/libeclectus/scripts/segmenttiles.py   eclectus(Download)
 
    if background != 'black':
        im = ImageOps.invert(ImageOps.grayscale(im))
 
    pix = im.load()

src/s/h/Shake-Images-0.4/shake_images/__init__.py   Shake-Images(Download)
 
    """
    return ImageOps.invert(img)
 
 

src/f/o/fos-legacy-HEAD/scratch/very_scratch/old_core/text.py   fos-legacy(Download)
        self.size = img.size
 
        rgbi=iops.invert(img.convert('RGB'))
 
        rgbai=rgbi.convert('RGBA')
        if self.invert == True:
 
            rgbi=iops.invert(img.convert('RGB'))
 
        else:

src/d/j/django-versatileimagefield-HEAD/versatileimagefield/versatileimagefield.py   django-versatileimagefield(Download)
        """
        imagefile = StringIO.StringIO()
        inv_image = ImageOps.invert(image)
        inv_image.save(
            imagefile,

src/p/i/pi3d-1.8a/pi3d/shape/ElevationMap.py   pi3d(Download)
 
      im = Image.open(mapfile)
      im = ImageOps.invert(im)
    else:
      im = mapfile #allow image files to be passed as mapfile

src/p/i/pi3d-1.8a/pi3d/shape/Building.py   pi3d(Download)
 
    im = Image.open(mapfile)
    im = ImageOps.invert(im)
    ix,iy = im.size
 

  1 | 2 | 3  Next