Home | History | Annotate | Download | only in png

Lines Matching full:planes

245     Interleave (colour) planes, e.g. RGB + A = RGBA.
333 planes=None,
455 # At the moment the `planes` argument is ignored;
603 self.planes = self.color_planes + self.alpha
605 self.psize = (self.bitdepth/8) * self.planes
630 should be ``self.height`` rows of ``self.width * self.planes`` values.
690 struct.pack('%dB' % self.planes,
691 *[self.rescale[0]]*self.planes))
896 dimensions (`width`, `height`, `planes`) and the number of bytes
901 vpr = self.width * self.planes
923 vpr = self.width * self.planes
942 vpr = self.width * self.planes
949 row_len = ppr*self.planes
958 offset = y * vpr + xstart * self.planes
960 skip = self.planes * xstep
961 for i in range(self.planes):
962 row[i::self.planes] = \
1213 planes = len(mode)
1214 if 'planes' in info:
1215 if info['planes'] != planes:
1216 raise Error("info['planes'] should match mode.")
1235 width = len(row) // planes
1560 # print >> sys.stderr, ("Reading interlaced, w=%s, r=%s, planes=%s," +
1561 # " bpp=%s") % (self.width, self.height, self.planes, self.bps)
1563 vpr = self.width * self.planes
1598 offset = y * vpr + xstart * self.planes
1600 skip = self.planes * xstep
1601 for i in range(self.planes):
1603 flat[i::self.planes]
1791 planes = color_planes + alpha
1797 self.planes = planes
1798 self.psize = float(self.bitdepth)/float(8) * planes
1863 not self.colormap and len(data) != self.planes):
1923 *[iter(self.deinterlace(raw))]*self.width*self.planes)
1927 for attr in 'greyscale alpha planes bitdepth interlace'.split():
1982 ``x * y * planes`` array. This method is intended to remove the
2007 colour, will have ``planes=3`` and ``alpha=False`` for the
2009 will have ``planes=4`` and ``alpha=True`` because an alpha
2030 meta['planes'] = 3 + bool(self.trns)
2046 planes = meta['planes']
2048 meta['planes'] += 1
2057 row = group(row, planes)
3682 # Rudely, the number of image planes can be used to determine
3684 planes = meta['planes']
3687 assert planes in (1,2,3,4)
3688 if planes in (1,3):
3689 if 1 == planes:
3699 if planes in (2,4):
3702 if 2 == planes:
3708 (width, height, planes, maxval, tupltype))
3710 vpr = planes * width