Lines Matching refs:greyscale
323 greyscale=False, argument
478 if greyscale:
547 if greyscale:
551 if alpha or not greyscale:
558 assert greyscale
572 if bitdepth < 8 and (alpha or not greyscale and not palette):
590 self.greyscale = bool(greyscale)
599 self.color_type = 4*self.alpha + 2*(not greyscale) + 1*self.colormap
602 self.color_planes = (3,1)[self.greyscale or self.colormap]
707 if self.greyscale:
716 if self.greyscale:
1788 greyscale = not (self.color_type & 2)
1790 color_planes = (3,1)[greyscale or colormap]
1794 self.greyscale = greyscale
2516 w = Writer(15, 17, greyscale=True, bitdepth=n, chunk_limit=99)
2531 w = Writer(1, 4, greyscale=True, bitdepth=2)
2636 greyscale=it.greyscale, alpha=it.alpha,
2644 greyscale=it.greyscale, alpha=it.alpha,
2662 self.assertTrue(r.greyscale)
2682 self.assertTrue(not r.greyscale)
2687 greyscale=True, alpha=True, bitdepth=4)
2753 w = Writer(8, 8, greyscale=True, bitdepth=1, transparent=transparent)
2772 w = Writer(16, 2, greyscale=True, alpha=False, bitdepth=1)
2890 greyscale=True, alpha=False, bitdepth=16)
2902 greyscale=True, alpha=False, bitdepth=8)
2914 greyscale=True, alpha=False, bitdepth=1)
3817 greyscale = depth <= 2
3828 greyscale=greyscale,